home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / RBHELP31.ZIP / HELPFILE < prev    next >
Text File  |  1991-03-15  |  107KB  |  2,645 lines

  1. #HELP
  2. NAME
  3.    HELP  - obtain help on DOS commands
  4.  
  5. SYNOPSIS
  6.    help [-1facpbqh] [-i[n]] [-k|K keyword ...] [keyword ... ]
  7.  
  8. DESCRIPTION
  9.    help is a program to retrieve and display entries from a help
  10.    file. It can operate in a full screen interactive browsing mode, or a
  11.    command line mode which writes only to standard output and should work
  12.    on generic MSDOS computers.  The helpfiles are pure ascii and can easily
  13.    be edited and extended for local variations in commands.
  14.  
  15. INTERACTIVE HELP
  16.    If HELP is entered without any commands specified, it enters a
  17.    full screen interactive help browsing mode.  A window is placed on the
  18.    screen with a sorted list of all available help entries.  There is
  19.    always one entry highlighted, and pressing <return> will retrieve help
  20.    entry for this item.  If environment variable PAGER is defined,
  21.    it is assumed to be a program to be used for displaying the help entry,
  22.    otherwise the entry is copied directly to the screen.  Options allow
  23.    the action to be customised for you favourite pager.  A program used
  24.    for the PAGER must be able to read from a pipe.  Selection from
  25.    the list continues until <ESC> is pressed.
  26.  
  27.    NOTE: use of a PAGER variable may slow the response noticeably,
  28.    unless the PAGER program is placed in RAM disk, and the path set
  29.    to include this. The command processor (COMMAND.COM or other) is not
  30.    used for this (PAGER is executed directly) When interactive mode
  31.    is used, the screen will be saved and restored after use.  In addition,
  32.    the temporary file necessary for this operation may be placed in a RAM
  33.    disk by setting variable TMPDIR or TMP to a suitable location.
  34.  
  35. The following keys are recognised in interactive mode:
  36.    <return>     select the current item
  37.    <space>
  38.  
  39.    <up>         move current line up or down, scrolling as needed
  40.    <down>
  41.  
  42.    <home>       jump to beginning and end of list, respectively
  43.    <end>
  44.  
  45.    <pageup>     scroll the list one window at a time
  46.    <pagedown>
  47.  
  48.    A-Z          alphabetic keys will scroll the list to the first
  49.                 entry beginning with the letter you type, or the
  50.                 following entry if none matches
  51.  
  52.    F1           pop up a help window describing key actions
  53.  
  54.    F2           toggle between displaying name, or full synopsis line
  55.  
  56.    F3           toggle synopsis line on current item only
  57.  
  58.    F4           extract a list of cross references from the current
  59.                 item, and open a new selection window.  This can be used
  60.                 recursively
  61.  
  62.    F10          window goes into move/resize mode.  Use arrow keys to
  63.                 move it, shift-arrows to resize left and bottom edges,
  64.                 <esc> or F10 to continue (see below)
  65.  
  66.    <ESC>        Exit the program and restore screen
  67.  
  68.    Moving/Resizing the Window:
  69.         The window containing the list of keywords can be moved or resized
  70.    by pressing F10.  This ability is for the benefit of other programs
  71.    that call help as a child process, with a custom help file.  The
  72.    window can be moved and resized with the following keys:
  73.      arrow keys:
  74.         move window 1 space at a time in the appropriate direction
  75.      control-arrow keys:
  76.         move window to extreme edge of screen in the appropriate direction
  77.      shift-arrow keys
  78.         resize by dragging right and bottom edges of the window
  79.      control-shift-arrow keys
  80.         resize by moving right and bottom edges maximum possible distance
  81.      ESC
  82.         redraw window in the current position and continue with program
  83.      F10
  84.         redraw window in the current position and continue with program, but
  85.         attempt to "lock" window position so that a subsequent call to this
  86.         program will use the new window position.  This function uses the
  87.         "Interapplication Communication Area" (ICA) in the BIOS data block.
  88.         If any other program is also using the ICA, help will NOT overwrite
  89.         it's contents.  The ICA may contain garbage when the machine is
  90.         first booted, so a small program (clearica.com) is provided to fill
  91.         the ICA with zeroes.  The ICA is not documented in the PS/2 BIOS and
  92.         this function may not work.  Using F10 should not cause problems with
  93.         the PS/2, but clearica may cause problems.  The sub-windows use with
  94.         the F4 (cross reference) command may be moved but not locked.
  95.  
  96. OPTIONS (apply to interactive mode only)
  97.   -c screen clear between each display.  Use this if you
  98.      specify a pager which does not clear the screen before starting.
  99.   -K key key ... apropos keyword (see below) with interactive browsing.
  100.       The list displayed for selection contains only those items which contain
  101.       one of the keywords in the synopsis.
  102.   -p pauses after each display.  Use this if you specify a pager
  103.      that does not pause at the end of the file (e.g. DOS MORE
  104.   -q quiet mode - flash instead of beeping
  105.   -b bios used for screen output instead of directvideo (use if
  106.      compatiblity problems arise with default action)
  107.  
  108. COMMAND LINE HELP
  109.    If the format "help command" is used, then the helpfile is searched
  110.    for "command", and if found, it is printed to standard output.
  111.    Multiple commands may be listed and they will be searched for in
  112.    order.
  113.  
  114.    If the format "help -k keyword" is used, the 1-line synopses for
  115.    each help entry are searched for "keyword" and all those that match
  116.    are copied to standard output.
  117.  
  118.    The command line help uses pure DOS i/o and should work on any generic
  119.    MS-DOS machine, including non-IBM compatibles.
  120.  
  121. OPTIONS (apply to non-interactive mode)
  122.    -i Print index of entries in help file.  If followed by a number
  123.       <n>, print <n> keywords per line (default 5).
  124.    -1 Print single file index of entries in help file, with no header
  125.    -k key key ...
  126.       Print synopsis of all entries related to <keyword>. All
  127.       command line arguments after -k are taken to be keywords for
  128.       synopsis search rather than entries to display full text
  129.       for.  The synopsis search is simpleminded, no regular
  130.       expressions or boolean combinations of keywords.
  131.    -f Force rebuild of index files
  132.    -h Display 1 screen summary of program
  133.    -a Ansi_mode. Do NOT enter interactive mode if no commands are
  134.       listed (for use on machines for which this causes trouble).  If
  135.       no commands are listed, then "HELP" is looked up instead.
  136.  
  137. DESCRIPTION of HELPFILES
  138.    The helpfile consists of one or more ascii files, with the index
  139.    words (and aliases) marked as explaied below.  The files are treated
  140.    effectively as though concatenated.  An index is built and stored in
  141.    a separate file whenever help detects that the index is out of
  142.    date with respect to the helpfile.  The helpfile may be edited with
  143.    any text editor.  The file supplied has brief descriptions of most of
  144.    the MSDOS 4.01 and earlier commands.  A 1-line description of every
  145.    help entry is also stored in the index file. This may be searched for
  146.    keywords by using the "apropos" command: help -k keyword
  147.  
  148.    The commands and keywords are not case sensitive.  All output is
  149.    to standard output which may be redirected to a file or printer.
  150.    Some of the longer entries exceed one screen and may be piped
  151.    through "more" or any other pager.
  152.  
  153.    The default directory for the help file is "/lib".  This may be
  154.    overridden by setting the environment variable HELPDIR
  155.  
  156.    The default name for the help file is "helpfile".  This may be
  157.    overridden by setting the environment variable HELPFILE.
  158.    HELPFILE may contain a list of file names separated by ";" and
  159.    HELP will cycle through each in turn. This allows help files for
  160.    different types of programs to be maintained in logical groupings, but
  161.    searched as if they were a single file.  They must all reside in the
  162.    same directory.  If any files are not present, a diagnostic will be
  163.    displayed but the others will be processed.
  164.  
  165.    The index file for each help file is created by appending .idx to
  166.    the data file name.  The data file should therefore have no
  167.    extension.
  168.  
  169. The format for the help files is:
  170.      # keyword [,alias ,alias ...] [#xref #xref ...]
  171.      keyword - 1 line description to be used by the -k option
  172.       ...
  173.      any number of lines of text, up to EOF or next # at start of
  174.      line ...
  175.  
  176.      Where: keyword - primary index for this help entry
  177.             alias   - alternate index terms for this help entry
  178.             #xref - keywords prepended by "#" are cross-references
  179.                     used by the F4 command in interactive mode.
  180.      All items on the index line are space or comma delimited, and the
  181.      line may be up to 134 characters.
  182.  
  183.    In all of the descriptions of command usage:
  184.  
  185.    [brackets] indicates optional items.
  186.    "..."      indicates that the previous parameter may be repeated.
  187.    "d:"       represents a valid drive letter (with colon)
  188.    "path"     represents a directory path
  189.    "filename" is a DOS filename (with extension)
  190.    "filespec" is a DOS filename optionally with "*" and "?" wildcards
  191.    "nnn"      is generally a numeric parameter to be supplied
  192.  
  193.    The help files use the format in the MKS toolkit help, of which
  194.    this was originally a clone.  See the documentation file for more
  195.    information
  196.  
  197. FILES
  198.    /lib/helpfile       default datafile containing help info
  199.    /lib/helpfile.idx   default index file
  200.  
  201.    HELPDIR  Environment variable - directory for helpfile
  202.    HELPFILE Environment variable - alternate name(s) for helpfile
  203.    PAGER    Environment variable - program to use for displaying help
  204.             entries
  205.    HELP     Environment variable - if set, is parsed as a command line
  206.             argument before the other arguments.  This can be used to set
  207.             defaults
  208.    COLOR    Environment variable - if set, this is used to set the colours
  209.             for interactive mode.  The format is the same as used by the
  210.             4DOS shell.  COLOR=fg ON bg  e.g. COLOR=BLUE ON YELLOW
  211.  
  212. BUGS
  213.    It would be useful if the last help entry viewed were to remain on the
  214.    screen at exit.  Since the help program has no control over which pager
  215.    is used, this is not always possible.  It is also not possible to preserve
  216.    the screen when recursive calls are made to the cross-reference feature.
  217.    In general, for any given pager, the best combination of -c and -p
  218.    options will need to be determined empirically.
  219.  
  220. AUTHORS
  221.      Original Author:
  222.        uwmacc!harvard!killer!wnp (Wolf Paul)
  223.  
  224.      Environment variable handling by:
  225.        plocher@uwspan.uucp (John Plocher)
  226.  
  227.      Addition of all -options, interactive mode, multiple helpfiles
  228.        and pretty much rewrote everything.
  229.        richard@calvin.spp.cornell.edu (Richard Brittain)
  230.         School of Electrical Engineering, Upson Hall
  231.         Cornell University, Ithaca NY 14853
  232.  
  233.      Code for the popen/pclose routines was taken from a BBS and it
  234.      bears no author name.
  235.  
  236.      Permission is granted to copy and use the compiled program and
  237.      documentation for any non-commercial use, provided all copyright
  238.      information is retained.
  239.  
  240.                  Copyright 1990 by Richard Brittain
  241.  
  242. # ANSI, ANSI.SYS #DEVICE #CONFIG.SYS
  243. ANSI.SYS - a device driver with extended screen and keyboard features.
  244.  
  245. COMMAND TYPE: External                  VERSION: 2.0 and up
  246.  
  247. USE: DEVICE = ANSI.SYS [/X]
  248.  
  249. This device driver allows screen output via DOS calls to make use of
  250. ansi standard escape sequences to manipulate the screen.  This allows
  251. programs to perform full screen display management without needing to
  252. manipulate the video memory directly. It is useful for running
  253. programs developed on terminal-based computers (such as unix systems).
  254. The keyboard may also be remapped so that a keypress can generate any
  255. desired sequence of characters.  By default, no key mapping is done.
  256. Most commercial software does NOT require this driver to be loaded.
  257.  
  258. /X (version 4.0) allows the duplicate function keys on the 101-key
  259.    extended keyboards to be remapped separately, otherwise they are
  260.    considered identical.
  261.  
  262. NOTE: The ANSI.SYS device driver must be placed in the CONFIG.SYS file
  263. and be used in conjunction with the DEVICE = DRIVER command.
  264.  
  265. # APPEND #PATH
  266. APPEND - locate files other than .COM .EXE .BAT by a search path
  267.  
  268. Locates files outside of current directory that have extensions other
  269. than .COM, .EXE, and .BAT.
  270.  
  271. COMMAND TYPE: Internal and External     VERSION: 3.3 and up
  272.  
  273. USE:
  274. (FIRST USE ONLY)
  275.     APPEND [/X][/E]
  276. or (to specify directories explicitly)
  277.     APPEND d:path[;[d:]path ...]
  278.  
  279. (SUBSEQUENT USES)
  280.      APPEND d:path[;[d:]path ...]
  281. or (to delete appended paths)
  282.      APPEND [;]
  283. or (to modify action with certain commands - see below)
  284.      APPEND [path] [/X:[OFF|ON]] [/path:[OFF|ON]]
  285.  
  286. d:path specifies the path to search. Paths cannot be specified the
  287.    first time the APPEND command is loaded if either /X or /E are also
  288.    specified.
  289. ;  to separate the APPEND paths or to request the list to be reset to
  290.    null if the semi-colon is the only parameter.
  291. /E is used to keep the APPEND paths in the DOS environment, similar to
  292.    the PATH command.  APPEND searches the environment on each call to
  293.    find the path. If the /E is not specified, the path string is held
  294.    within the APPEND command.  The paths are not stored in the
  295.    environment and can only be viewed or changed by using the APPEND
  296.    command.
  297. /X to process SEARCH FIRST, FIND FIRST, and EXEC functions.  Commands
  298.    such as COMP and DIR use the SEARCH FIRST functions to search for
  299.    files.  Commands such as BACKUP, RESTORE, and TREE use the FIND
  300.    FIRST function to locate files.  DOS uses the EXEC function any
  301.    time a command is entered.
  302.    The following functions are processed by APPEND with or without /X:
  303.    OPEN FILE, OPEN HANDLE, GET FILE SIZE
  304.  
  305. NOTE: If APPEND has been loaded with /X, before using BACKUP or
  306. RESTORE, APPEND must be issued using null (;).
  307.  
  308. MSDOS 4.x  The extra parameters /x:off, /x:on are available to toggle
  309.    the setting of this function.  Individual paths may be disabled or
  310.    enabled from APPEND processing with the /path:on, /path:off
  311.    parameters.
  312.  
  313. NOTE: /X and /E can only be specified on the first invocation of the
  314.    APPEND command. APPEND must be used before ASSIGN if you intend to
  315.    use the ASSIGN command.
  316.  
  317. The main use of APPEND is to allow applications to access auxiliary
  318. files without needing run from the directory where those files are
  319. stored. The command processor finds the application itself (.COM, .EXE
  320. or .BAT) via the PATH command.  The APPEND paths then allow the
  321. application to locate other files (such as dictionary or configuration
  322. files).
  323.  
  324. SEE ALSO: PATH
  325.  
  326. # ASSIGN #SUBST #JOIN
  327. ASSIGN - Causes a request for one drive to be routed to another drive.
  328.  
  329. COMMAND TYPE: External                  VERSION: 2.0 and up
  330.  
  331. USE: ASSIGN [x [=] y[...]]
  332.  
  333. Requests for drive 'x' are routed to drive 'y'.
  334. ASSIGN entered without parameters will reset any ASSIGNments.
  335.  
  336. EXAMPLE: ASSIGN A=C
  337.    After issuing this command, any requests for drive A: will access
  338. drive C:. e.g.  DIR A: will list the files on drive C:.
  339.    ASSIGN is provided to allow programs written for a specific drive
  340. (usually a: or b:) to be used on other drives.  Commands which require
  341. information about the drive (backup, restore, label, join, subst,
  342. print) should not be used on ASSIGNed drives.  ASSIGN should not be
  343. used except where needed for a particular program.  The SUBST command
  344. is the preferred method of reassigning drives and/or paths.  FORMAT
  345. and DISKCOPY ignore drive reassignments.
  346.  
  347. SEE ALSO: SUBST
  348.  
  349. # ATTRIB #BACKUP #XCOPY
  350. ATTRIB - Set or display the ARCHIVE or READ-ONLY attributes on a file.
  351.  
  352. COMMAND TYPE: External                  VERSION: 3.0 and up
  353.  
  354. USE:  ATTRIB [+R|-R][+A|-A][d:][path] [filename][/S]
  355.  
  356. +R sets the file attribute to READ-ONLY.
  357. -R removes the READ-ONLY file attribute, allows updating of the file.
  358. +A sets the archive bit.
  359. -A resets the archive bit.
  360.  
  361. d: path filename specifies the file whose attributes will be changed.
  362.    (wildcards may be specified)
  363.  
  364. /S to process all files in the specified directory and its
  365.    subdirectories.  (This switch is valid for DOS 3.3 and later
  366.    versions).
  367.  
  368. EXAMPLE: ATTRIB +R HELP.COM
  369.  
  370. The above example sets the file 'HELP.COM' to a READ-ONLY status. The
  371. archive attribute is set whenever a file is modified, and is used by
  372. BACKUP, RESTORE and XCOPY to determine whether to process files based
  373. on their "modified" status.  Other non-MSDOS backup programs also may
  374. examine this attribute.  Backup and copy programs may or may not
  375. remove the archive bit, depending on settings.
  376.  
  377. SEE ALSO: BACKUP, XCOPY
  378.  
  379. # AUTOEXEC, AUTOEXEC.BAT #CONFIG.SYS #SHELL
  380. AUTOEXEC.BAT - batch file run whenever the system is booted.
  381.  
  382. COMMAND TYPE: External                  VERSION: 1.0 and up
  383.  
  384. USE: AUTOEXEC
  385.  
  386. If a batch file named AUTOEXEC.BAT exists on the drive used to start
  387. MSDOS, then it is executed by the system when the boot procedure is
  388. completed.  It is also executed if a new primary command processor is
  389. loaded.  The primary use of AUTOEXEC is to run programs which are
  390. required whenever the computer is used, so that you do not have to
  391. enter them each time.  For example, you may wish to load APPEND and
  392. PRINT.  It can also be used to set PATH and PROMPT, any other
  393. environment variables you usually use, and load any RAM-resident
  394. software.
  395.  
  396. EXAMPLE:
  397. PATH C:\LOCAL\BIN;C:\BIN;C:\DOS C:\TC;C:\DBASE;C:\WP50
  398. PRINT /D:LPT1 /B:512
  399. PROMPT $e[s$e[1;69H$e[7m$t$h$h$h$e[0m$e[u$p$g
  400. SET COMSPEC=C:\DOS\COMMAND.COM
  401. VER
  402.  
  403. SEE ALSO: CONFIG.SYS, SHELL
  404.  
  405. # BACKUP #RESTORE
  406. BACKUP - Backs up files from one disk to another.
  407.  
  408. COMMAND TYPE: External                  VERSION: 2.0 and up
  409.  
  410. USE:  BACKUP d:[path][filename] d:[/S][/M][/A][/D:mm-dd-yy]
  411.       [/T:hh:mm:ss][/F:size] [/L[:[d:[path]filename]]]
  412.  
  413. d:\path\filename specifies the source drive (the drive that contains
  414.    the files that you want to back up).
  415.  
  416. The second d: specifies the destination drive (the drive to back up
  417. the files to).
  418.  
  419. /S includes all subdirectories in the backup.
  420. /M backs up files that have been modified since the last backup (files
  421.    with the archive bit set)
  422. /A backs up additional files to a diskette with back up files already
  423.    on it.  Without this option, all files on the backup diskette will
  424.    be destroyed.
  425. /D:mm-dd-yy backs up files that have been modified since a specific
  426.    date.
  427.  
  428. NOTE: The following options /T, /F, and /L are new to DOS 3.3.  Do not
  429. try them with earlier versions.
  430.  
  431. /T:hh:mm:ss backs up files that have been modified on or after the
  432.    specified time on the date specified.
  433. /F:size formats the target diskette if it is not already formatted.
  434.    "size" indicates the type of disc for the formatting program. The
  435.    following may be accepted: 160,180,320,360,1200 (kb - 5.25" discs)
  436.    or 720,1440 (kb - 3.5"discs)
  437. /L creates a log.  If a file name is not specified, the default is
  438.    BACKUP.LOG, and the file is stored in the root directory of the
  439.    source drive.  If a log file exists, the information is appended to
  440.    the end of that file.  The first record of the file contains:
  441.         The date of the backup    The time of the backup
  442.    Subsequent records contain:
  443.         Diskette number of the backed up file. Full path and file name
  444.         of each backed up file.
  445.  
  446. Files created using the BACKUP command must be RESTOREd to be useful.
  447.  
  448. EXAMPLE: BACKUP C:\*.* A:/S
  449.  
  450. This example will back up all files (in all subdirectories) on drive
  451. C: to drive A:.
  452.  
  453. NOTES: Do not use on drives which have been ASSIGNed, SUBSTituted or JOINed.
  454.  
  455. SEE ALSO: RESTORE
  456.  
  457. # BREAK
  458. BREAK - Enables or disables extended CTRL-BREAK checking.
  459.  
  460. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  461.  
  462. USE: BREAK = [ON] [OFF]
  463.  
  464. ON and OFF are the allowable settings.  The default setting is BREAK =
  465. OFF.  With no argument BREAK reports the current setting.
  466.  
  467. When BREAK = OFF, DOS checks for a CTRL-BREAK or CTRL-C only during
  468. standard input operations, standard output operations, print
  469. operations, and auxiliary operations.  When BREAK is on, DOS will
  470. respond to CTRL-BREAK at any time.  Note that some programs may change
  471. this setting themselves.
  472.  
  473. NOTE: BREAK may be specified in CONFIG.SYS
  474.  
  475. # BUFFERS
  476. BUFFERS - Sets the number of disk buffers allowed.
  477.  
  478. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  479.  
  480. USE: BUFFERS = n[,m] [/x]
  481.  
  482. n  must be a value from 1 to 99 specifying the number of buffers to be
  483.    used.  The default value is two buffers.
  484.  
  485. MSDOS 4.x only:
  486. m  is is maximum number of sectors that can be read or written in one
  487.    operation [1-8], default is 1
  488. /x places the buffers in expanded memory (the number of buffers may
  489.    then be up to 10000)
  490.  
  491. For disk intensive applications such as a database, more buffers are
  492. recommended.  Adding more buffers can speed up certain applications.
  493. However, if you set the number of buffers over 20 it may begin to slow
  494. down applications.
  495.  
  496. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  497. normal DOS command.
  498.  
  499. # CALL
  500. CALL - call a batch file from within another batch file
  501.  
  502. COMMAND TYPE: Internal                  VERSION: 4.0 and up
  503.  
  504. USE: CALL [d:][path][batchfile [arguments]
  505.  
  506. d:path batchfile is the batchfile to be executed, followed by any
  507. arguments to be used by the called file.
  508.  
  509. When the called file terminates, the calling file continues executing.
  510. A batch file may call itself recursively, but there should be a
  511. terminating condition at some point.  Do not use pipes or redirection
  512. in the call statement.
  513.  
  514. # CHCP #NLSFUNC #COUNTRY
  515. CHCP - Selects the code page that DOS will use for country specific devices
  516.  
  517. CHCP selects that code page for as may devices as possible. This is a
  518. system level command, while MODE is a device level command.
  519.  
  520. COMMAND TYPE: Internal                  VERSION: 3.3 and up
  521.  
  522. USE: CHCP [nnn]
  523. [nnn] specifies the desired code page. If omitted, the currently
  524. active code page and all prepared code pages are reported.
  525.  
  526. NOTES:
  527.  1.  The NLSFUNC command must be loaded prior to issuing the CHCP
  528.      command.  See the NLSFUNC command for more information.
  529.  2.  If a device driver has not been prepared for the requested code
  530.      page, CHCP cannot select the code page for that device.  Refer to
  531.      the MODE command in this chapter.
  532.  3.  This command may need to access the COUNTRY.SYS file.  If the
  533.      file cannot be found, a FILE NOT FOUND message is displayed.
  534.      Using the COUNTRY= statement in the CONFIG.SYS file or the
  535.      NLSFUNC command, you can tell DOS where to find COUNTRY.SYS.
  536.  
  537. # CHDIR,CD #MKDIR #RMDIR
  538. CHDIR, CD - Displays or changes the current working directory.
  539.  
  540. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  541.  
  542. USE: CHDIR [d:][path]
  543.  or  CD [d:][path]
  544.  
  545. d: path specifies the new drive and directory that will be made
  546.    current.
  547.  
  548. If no parameters are used then the current drive and directory are
  549. displayed.  The root directory is represented by "\".  A path
  550. beginning with \ is taken to be relative to the root directory, while
  551. any other path is relative to the current directory.  The parent
  552. directory can be abbreviated to ".."
  553.  
  554. # CHKDSK #RECOVER
  555. CHKDSK - Analyzes the files and directories on a disk
  556.  
  557. Chkdsk checks the disk directory for self consistency and displays the
  558. total and available disk and RAM memory.
  559.  
  560. COMMAND TYPE: External                  VERSION: 2.0 and up
  561.  
  562. USE:  CHKDSK [d:][path][filename] [/F][/V]
  563.  
  564. d: path filename specifies a filename to check.  If a filename is
  565.    specified, CHKDSK will report the number of non-contiguous areas
  566.    occupied by the file.  Access to non-contiguous (fragmented) files may be
  567.    significantly slower than to contiguous files.  Perform a backup
  568.    and restore to correct this situation
  569.  
  570. /F corrects errors found in the directory and in the file allocation
  571.    table. Other errors are noted, but not corrected. The user is
  572.    prompted whether to allow each chain of lost clusters to be
  573.    converted into a valid file.  These files will be named with the
  574.    following naming convention:
  575.    FILEnnnn.CHK where nnnn is a four digit number starting with 0000.
  576.  
  577. /V displays all paths and filenames on the specified drive.
  578.  
  579. # CLS
  580. CLS - Clears the screen.
  581.  
  582. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  583.  
  584. USE: CLS
  585.  
  586. # COMMAND #SHELL #CONFIG.SYS
  587. COMMAND - Invokes a secondary command processor.
  588.  
  589. COMMAND TYPE: External                  VERSION: 2.0 and up
  590.  
  591. USE:  COMMAND [d:][path][ctty-dev][/P] [/C string][/E:nnnnn]
  592.  
  593. d: path is the drive and path that DOS will look in for the COMMAND
  594.    processor.
  595. ctty-dev allows you to specify a different device (such as AUX) for
  596.    input and output.
  597. /P makes the secondary command processor permanent in memory. The autoexec.bat
  598.    file is executed following this command.
  599. /C string passes a string (a DOS command) to the command processor and
  600.    then exits automatically.
  601. /E:nnnnn is an integer that specifies the size (in bytes) of the
  602.    environment. The acceptable range of nnnnn is from 160 to 32768.
  603.    (not available pre DOS 2.x).  In DOS 3.1, the size is in paragraphs
  604.    (units of 16 bytes).  Default size is 160 bytes.
  605.  
  606. EXAMPLE: COMMAND /C CHKDSK B:
  607. loads a secondary command processor, runs the command CHKDSK on drive B
  608. and returns to the original command processor.
  609.  
  610. # COMP #FC #DISKCOMP
  611. COMP - Compares the contents of a file (or group of files) to another.
  612.  
  613. COMMAND TYPE: External                  VERSION: 2.0 and up
  614.  
  615. USE:  COMP [d:][path][filename] [d:][path][filename]
  616.  
  617. The first d: path filename specifies the first set of files to be
  618. compared. The second d: path filename specifies the second set of files to
  619. be compared.  Either set may contain wildcards.  If no filename is
  620. specified, *.* is assumed.
  621.  
  622. COMP compares files byte for byte. Any bytes that do not match are
  623. displayed. A typical error message would look like:
  624.           Compare error at OFFSET XXXX
  625.           File 1 = 17
  626.           File 2 = 26
  627. After 10 errors, COMP will abort.
  628.  
  629. EXAMPLE: COMP A:HELP.* C:
  630. compares the contents of all files with the filename of HELP and any
  631. extension on drive A: to files on drive C: with matching filenames.
  632.  
  633. SEE ALSO: FC, DISKCOMP
  634.  
  635. # CONFIG, CONFIG.SYS #SHELL #DEVICE #BREAK #BUFFERS #COUNTRY #DEVICE #DRIVPARM #FCBS #FILES #INSTALL #LASTDRIVE #REM #SHELL #STACKS
  636. CONFIG.SYS - setup system configuration and load device drivers at boot time
  637.  
  638. COMMAND TYPE: System configuration      VERSION: 1.0 and up
  639.  
  640. If a file CONFIG.SYS exists in the root directory of the disc used to
  641. load MSDOS, it is read by the system during the boot sequence and the
  642. information in it is used to customise the operating system.  It is
  643. also used to specify DEVICE DRIVERS, which are programs used to access
  644. external devices on the computer.  Device drivers can only be loaded
  645. when the system is initialised and so must be listed in CONFIG.SYS.
  646. IF no config.sys file is found, no device drivers are loaded and all
  647. of the system default values are used for the variable parameters.
  648.  
  649. The possible commands used in CONFIG.SYS are listed below.  They are all
  650. described separately in this help file.
  651. BREAK     set control-break checking
  652. BUFFERS   set number of disc buffers
  653. COUNTRY   set country specific defaults
  654. DEVICE    load a device driver
  655. DRIVPARM  define parameters for block devices
  656. FCBS      specify the number of FCBs that can be open simultaneously
  657. FILES     set the number of open files that can access MSDOS
  658. INSTALL   execute certain MSDOS commands during CONFIG.SYS processing
  659. LASTDRIVE set the maximum number of drives you may access
  660. REM       add comments to CONFIG.SYS
  661. SHELL     specify file to execute on completion on boot sequence
  662. STACKS    supports the dynamic use of data stacks
  663.  
  664. # COPY #XCOPY #VERIFY #DISKCOPY
  665. COPY - Copies a file (or group of files) to the same or another disk.
  666.  
  667. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  668.  
  669. USE:  COPY [/A][/B][d:][path] filename [/A][/B][d:][path] [filename]
  670.            [/A][/B][/V]
  671.  or   COPY [/A][/B][d:][path] filename [/A][/B][+[d:][path] filename
  672.            [/A][/B]] [d:][path] [filename] [/A][/B][/V]
  673.  or   COPY [/A][/B][d:][path] filename [/A][/B][+[[,,]d:][path]
  674.            filename [/A][/B]...] [d:][path][filename] [/A][/B][/V]
  675.  
  676. The first d: path filename specifies the source file.
  677.  
  678. The + symbol will cause files to be joined together as they are
  679. copied.  For example:  COPY FILE1+FILE2 FILE3 will copy the contents
  680. of FILE1 and FILE2 into FILE3.  Multiple files may be joined in one operation.
  681.  
  682. The second d: path filename specifies the destination file.
  683.  
  684. When /A (ascii) is used with the source filename, it will be copied up
  685. to the first end of file marker (Ctrl-Z). The rest of the file will
  686. not be copied.
  687. When /A is used following the destination file, an end of file marker
  688. will be added to the end of the file.
  689.  
  690. When /B (binary) is used with the source filename, the entire file
  691. will be copied (including CTRL-Z).  This is the default.
  692. When /B is used following the destination filename, no end of file
  693. marker will be added to the end of the file.
  694.  
  695. /V verifies that the data is copied correctly.
  696.  
  697. Wild Card characters are allowed within or in place of filenames.
  698. wildcards in the destination will be replaced by the corresponding
  699. filename or part of filename from the source file list.
  700.  
  701. SEE ALSO: XCOPY
  702.  
  703. # COUNTRY #NLSFUNC #CHCP #CONFIG.SYS
  704. COUNTRY - Selects date, time, currency format for a specific country.
  705.  
  706. COMMAND TYPE: System Configuration      VERSION: 3.0 and up
  707.  
  708. USE: COUNTRY = xxx[,[yyy][,[drive:]filename]]
  709.  
  710. xxx is a 3 digit code which designates a particular country.
  711. yyy is the code page for the country.
  712. filename is a file containing country information (country.sys is used
  713.     if none specified)
  714.  
  715. The following codes and corresponding countries are listed below.
  716.  
  717. AUSTRALIA   061  BELGIUM   032  CANADA/FRENCH 002  DENMARK 045  FINLAND     358
  718. FRANCE      033  GERMANY   049  ITALY         039  ISRAEL  972  MIDDLE EAST 785
  719. NETHERLANDS 031  NORWAY    047  PORTUGAL      351  SPAIN   034  SWEDEN      046
  720. SWITZERLAND 041  U.KINGDOM 044  USA 001
  721.  
  722. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  723. normal DOS command.
  724. Unless otherwise specified, United States settings are used.  This
  725. country specific information is used by DATE, TIME, BACKUP and
  726. RESTORE, and is available to other programs also.
  727.  
  728. # CTTY
  729. CTTY - Changes the standard console device to an auxiliary device.
  730.  
  731. Ctty changes the standard input and output device to an auxiliary
  732. device, or restores the keyboard and screen as the standard input and
  733. output devices.
  734.  
  735. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  736.  
  737. USE: CTTY device
  738.  
  739. The available devices are:
  740.   AUX:  ASYNCHRONOUS PORT   COM1: ASYNCHRONOUS PORT
  741.   COM2: ASYNCHRONOUS PORT   CON:  KEYBOARD INPUT and SCREEN OUTPUT
  742.  
  743. EXAMPLE: CTTY COM1
  744. After this command is performed, all standard input and output will be
  745. sent to and taken from the primary asynchronous port.
  746.  
  747. # DATE #TIME #AUTOEXEC.BAT
  748. DATE - Displays or sets the system date.
  749.  
  750. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  751.  
  752. USE: DATE [mm-dd-yy]
  753.  
  754. If DATE is entered with no parameters, the current date will be
  755. displayed and you will be prompted to enter a new date.  If the date
  756. is correct, press ENTER.
  757. If you wish, you may enter the date immediately after DATE in the
  758. format mm-dd-yy.  The format used to display the date is a function of
  759. the country selected in the COUNTRY command in config.sys.  European
  760. formats will be dd-mm-yy.  On input, you may use "-" or "/" as
  761. separators.  This command also sets the hardware clock, if one is
  762. present in your computer (AT only)
  763. If there is no AUTOEXEC.BAT file, the commands DATE and TIME are executed
  764. automatically when the computer is booted.
  765.  
  766. SEE ALSO: TIME
  767.  
  768. # DEBUG
  769. DEBUG - run, examine and modify binary files
  770.  
  771. COMMAND TYPE: External                  VERSION: 1.0 and up
  772.  
  773. The debug utility is a debugging program that provides a controlled
  774. testing environment for binary and executable object files.
  775.  
  776. USE: DEBUG [filename [arguments ...]]
  777.  
  778. Debug is intended for use by programmers only.  See the MSDOS
  779. TECHNICAL REFERENCE for full details.  Below is a very brief summary
  780. of the available debug commands.
  781.  
  782. A [address]                     Assemble
  783. C range address                 Compare
  784. D [range]                       Dump
  785. E address [list]                Enter
  786. F range list                    Fill
  787. G [=address [address...]]       Go
  788. H value value                   Hex
  789. I value                         Input
  790. L [address [driv:rec rec]]      Load
  791. M range address                 Move
  792. N filename [filename]           Name
  793. O value byte                    Output
  794. P [=address][number]            Proceed through loop or subroutine
  795. Q                               Quit
  796. R [register-name]               Register
  797. S range list                    Search
  798. T [=address] [value]            Trace
  799. U range                         Unasassemble
  800. W [address [driv:rec rec]]      Write
  801. XA                              Expanded memory allocate
  802. XD                              Expanded memory deallocate
  803. XM                              Expanded memory map pages
  804. XS                              Expanded memory status
  805.  
  806. # DEL, ERASE
  807. DEL, ERASE - Delete a file (or group of files) from a disk.
  808.  
  809. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  810.  
  811. USE: DEL [d:][path] filespec /P
  812.  
  813. d: path filespec specifies the file(s) to DELete.  wildcards are accepted.
  814. /p prompt before deleting each file.  If the filespec is *.*, DEL will
  815.    always prompt for verification.
  816.  
  817. ERASE is a synonym for DEL
  818.  
  819. # DEVICE #ANSI #DISPLAY #DRIVER #KEYBOARD #VDISK #RAMDRIVE #SMARTDRV #EMM386 #HIMEM #XMA2EMS
  820. DEVICE - Allows MS-DOS to load and utilize a device driver.
  821.  
  822. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  823.  
  824. USE: DEVICE = [d:][path]filename [arguments]
  825.  
  826. d: path filename specifies the file to use as a device driver.
  827.  
  828. All DEVICE drivers must be included in the CONFIG.SYS file to operate
  829. properly.  Any arguments needed by the individual drivers are
  830. specified following the filename.  These are not commands which are
  831. available at the DOS level.
  832.  
  833. The following device drivers are standard:  (see help on each
  834. individually for more information)
  835.  
  836. ANSI.SYS      gives screen control using ansi escape sequences
  837. DISPLAY.SYS   use code page switching on EGA, LCD and PS/2 displays
  838. DRIVER.SYS    create logical DOS devices for extra physical disc
  839.               drives
  840. COUNTRY.SYS   loaded automatically by DOS to handle country specific
  841.               tasks
  842. PRINTER.SYS   provides code page switching on printer ports, for
  843.               printers supporting multiple code pages (IBM only)
  844. KEYBOARD.SYS  (DOS 4.x) loaded by DOS to handle country specific
  845.               keyboard interface
  846. VDISK.SYS     (DOS 2.x,3.x) Allows you to use part of memory as a
  847.               virtual disk drive.
  848. RAMDRIVE.SYS  (DOS 4.x) replaces VDISK.SYS for DOS 4
  849. SMARTDRV.SYS  (DOS 4.x) disk cache program to store recently used disc
  850.               sectors in memory for faster access
  851. EMM386.SYS    (DOS 4.x) Allows 80386 machines with extended memory to
  852.               emulate expanded memory (LIM EMS 4.0)
  853. HIMEM.SYS     (DOS 4.x) Extended memory (XMS 2.0) driver to allow
  854.               80286/80386 based machines to access extended memory
  855. XMA2EMS.SYS   (DOS 4.x) Expanded memory manager
  856.  
  857. # DIR #TREE #CHKDSK
  858. DIR - Lists the files in a directory.
  859.  
  860. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  861.  
  862. USE:  DIR [d:][path][filespec] [/P][/W]
  863.  
  864. d: path filespec specifies the drive, path, and filenames to list.
  865.    wildcards * and ? are accepted.
  866. /P will PAUSE the listing each time a screen full of file names
  867.    appears.  You will be asked to press a key when you are ready to
  868.    continue.  This keeps the files from scrolling by faster than you
  869.    can read them.
  870. /W will list the files in a WIDE format.  Only the file names will be
  871.    listed and they will be listed five across.  You can fit a much
  872.    larger directory on the screen this way.
  873.  
  874. # DISKCOMP #COMP #FC
  875. DISKCOMP - Compares the contents of one diskette to another.
  876.  
  877. COMMAND TYPE: External                  VERSION: 2.0 and up
  878.  
  879. USE: DISKCOMP [d:[d:]] [/1][/8]
  880.  
  881. d: d: are the two disk drives to be compared.
  882. /1 compares the first side of the disk only, even if the disk is
  883.    double sided.
  884. /8 compares eight sectors per track even if the discs contain 9
  885.    or 15
  886.  
  887. DISKCOMP will operate on floppy disks only.  DISKCOMP compares on a
  888. sector by sector basis, without regard to file structure.  It ignores
  889. the disc serial numbers.
  890.  
  891. SEE ALSO: COMP, FC
  892.  
  893. # DISKCOPY #COPY #XCOPY #BACKUP #VERIFY
  894. DISKCOPY -  Copies the contents of one diskette to another.
  895.  
  896. COMMAND TYPE: External                  VERSION: 2.0 and up
  897.  
  898. USE: DISKCOPY [d:[d:]][/1]
  899.  
  900. The first  d: is the source disk for the DISKCOPY.
  901. The second d: is the destination disk for the DISKCOPY.
  902. /1 copies only the first side of the disk.
  903.  
  904. If the destination disk has not been formatted, then DISKCOPY will
  905. format as it copies (with the same number of sectors and sides as the
  906. source disc).  If specified with no parameters, DOS will perform a
  907. single drive copy on the default drive.
  908.  
  909. DISKCOPY is for use on floppy disks only.  An attempt to use DISKCOPY
  910. with a fixed disk will not work.
  911. DISKCOPY makes a mirror image copy of a diskette on to another
  912. diskette.  As a result, any flaws or fragmented files will also be
  913. copied over.  The COPY or XCOPY commands would work much better under
  914. these circumstances.
  915.  
  916. SEE ALSO: COPY, XCOPY, BACKUP
  917.  
  918. # DISPLAY, DISPLAY.SYS #NLSFUNC #COUNTRY #DEVICE #CONFIG.SYS
  919. DISPLAY.SYS - use code page switching on EGA, LCD and PS/2 displays
  920.  
  921. Display.sys is a device driver which allows you to use code page
  922. switching on the IBM PC convertible LCD screen, EGA, and IBM Personal
  923. System/2 displays.
  924.  
  925. USE: DEVICE=[d:][path] DISPLAY.SYS CON[:] = (type[,[hwcp][,n,m]])
  926.  
  927. type specifies the display adapter type.  The display types are MONO,
  928.      CGA, EGA, and LCD.
  929. hwcp specifies the code page supported directly by the hardware.  The
  930.      possible hwcp are 437 (US), 850 (Mult), 860 (Port), 863 (Can-Fr), and
  931.      865 (Nor).
  932. n    specifies the number of additional codes that can be supported.
  933.      This value is referred to as the number of prepared code pages.
  934.      The allowable range of additional code pages n must be between 0
  935.      and 12 and is hardware dependant.  The MONO and CGA cannot
  936.      support prepared pages.  The value of n for these must be 0.
  937.  
  938. Each prepared code page requires a buffer in DISPLAY.SYS which hold
  939. the corresponding character fonts.
  940.  
  941. m    specifies the number of sub-fonts supported for each code page.
  942.      These sub-fonts vary for different adapters and display modes. If
  943.      the value of m is not specified then the default is the maximum
  944.      number of sub-fonts:
  945.  
  946.           --------------------------------------
  947.          | Devices   | Font Size | Default m    |
  948.          |-----------|-----------|--------------|
  949.          |EGA        | 8x8 8x14  |    2         |
  950.          |IBM PS/2   | 8x8 8x16  |    2         |
  951.          |Convertible| 8x8       |    1         |
  952.           --------------------------------------
  953.           ------------------------------------
  954.          | Device|Default| n    | m   |Default|
  955.          | Type  | n     |      |     | m     |
  956.          |-------|-------|------|-----|-------|
  957.          | CGA   | 0     | 0    | 0   | 0     |
  958.          | MONO  | 0     | 0    | 0   | 0     |
  959.          | EGA & | 1     | 1-12 | 1-2 | 2     |
  960.          | PS/2  |       |      |     |       |
  961.          | LCD   | 1     | 1-12 | 1   | 1     |
  962.          |_______|_______|______|_____|_______|
  963.  
  964. The number of additional code page values may cause a buffer to be
  965. used to hold the image data.  The size of this buffer is dependent on
  966. the display type.
  967.  
  968. EXAMPLE: DEVICE=C:\DOS\DISPLAY.SYS CON:=(EGA, 437, 2)
  969. This example installs the code page switching support for the CON:
  970. device. It also tells the CON: driver that the display is an Enhanced
  971. Graphics Adapter with the 437 code page built in.  The CON driver
  972. holds up to two pages prepared by the use of the MODE command.
  973.  
  974. NOTE: If you are using ANSI.SYS and DISPLAY.SYS, the DEVICE=ANSI.SYS
  975. statement must appear before the DEVICE=DISPLAY.SYS statement in the
  976. CONFIG.SYS file.
  977.  
  978. NOTE: The display type EGA supports the Enhanced Graphics Adapter and
  979. IBM Personal System/2.  The IBM Personal System/2 video support is not
  980. functionally equivalent to EGA video support.
  981.  
  982. # DRIVER, DRIVER.SYS #DEVICE #CONFIG.SYS
  983. DRIVER.SYS - device driver to allow access of extra disk devices.
  984.  
  985. COMMAND TYPE: EXTERNAL                  VERSION: 3.2 and up
  986.  
  987. USE:  DEVICE=DRIVER.SYS /D:ddd [/T:ttt][/S:ss][/H:hh][/C] [/N][/F:f]
  988.  
  989. /D:ddd specifies the physical drive number.  Value 0-127
  990. /T:ttt specifies the number of tracks per side.  Value 1-999 (default 80)
  991. /S:ss  specifies sectors per track.  Value 1-99 (default is 9)
  992. /H:hh  specifies the maximum number of heads.  Value 1-99 (default is 2)
  993. /C     specifies that changeline support is available.
  994. /N     specifies that the disk is not removable.
  995. /F:f   specifies the device type.
  996.          0 = 160/180/320/360 kb 5.25"
  997.          1 = 1.2 Mb  5.25"
  998.          2 = 720 kb  3.5"
  999.          7 = 1.44 Mb 3.5"
  1000.  
  1001. NOTE: The DRIVER.SYS device driver must be placed in the CONFIG.SYS
  1002. file and be used in conjunction with the DEVICE = DRIVER command.
  1003.  
  1004. # DRIVPARM #DRIVER #DEVICE #CONFIG.SYS
  1005. DRIVPARM - modify the parameters of an existing physical disc drive
  1006.  
  1007. This command allows the modification of parameters associated with
  1008. existing block devices, overriding the default MSDOS values.  To add a
  1009. new device, use DRIVER.SYS
  1010.  
  1011. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  1012.  
  1013. USE: DRIVPARM=/d:number [/c][/f:factor][/h:heads][/i][/n][/s:sectors]
  1014.  
  1015. /d:number declares the physical drive to be used (acceptable range 0-255)
  1016.      where 0=A:, 1=B: etc.
  1017. /c   indicates that drive referenced has door-open detection available
  1018. /f:factor specifies the form factor (drive type) from the list below
  1019.      0 = 160/180/320/360 kbytes      1 = 1.2 Mb
  1020.      2 = 720 kb (3.5")               5 = fixed hard disc
  1021.      6 = tape drive                  7 = 1.44 Mb (3.5")
  1022.      The default values for the following options depend on the value
  1023.      given to /f
  1024. /h:heads -heads is number of heads (1-99)
  1025. /i   specifies an electrically compatible 3.5" drive.  Such a drive is connected
  1026.      to the existing floppy disc controller as drive A: or B:.  Use this
  1027.      switch if the ROM bios does not support 3.5" drives directly
  1028. /n   specifies a none-removable block device
  1029. /s:sectors - sectors is the number of sectors per track (1-9)
  1030. /t:tracks  - tracks is the number of tracks per side (1-999)
  1031.  
  1032. NOTE:  This command can only be used in CONFIG.SYS
  1033.  
  1034. SEE ALSO: DRIVER.SYS
  1035.  
  1036. # ECHO
  1037. ECHO - Control echoing of batch commands to the screen
  1038.  
  1039. Enables or disables the screen display of DOS commands during the
  1040. execution of batch files.
  1041.  
  1042. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1043.  
  1044. USE: ECHO [ON] [OFF] [message]
  1045. or   @ECHO OFF
  1046.  
  1047. ON  turns ECHO on
  1048. OFF turns ECHO off.
  1049. message is a text message that will be displayed on the screen.
  1050.  
  1051. After turning ECHO off, any batch file commands encountered by DOS
  1052. will not be echoed to the screen.
  1053.  
  1054. (DOS 3.3, 4.x)  When the @ symbol is used before a REMark or before an
  1055. ECHO ON or ECHO OFF command, that command will not be displayed.
  1056.  
  1057. # EDLIN
  1058. EDLIN - A line editor.  It can be used to create and edit ascii files.
  1059.  
  1060. COMMAND TYPE: External                  VERSION: 2.0 and up
  1061.  
  1062. USE: EDLIN [d:][path] filename [/B]
  1063.  
  1064. d: path filename specifies the name of the file to create or edit.  If
  1065.    the /B parameter is not used, EDLIN will stop loading the specified
  1066.    file when the first end of file marker (Ctrl-Z) is encountered.  If /B
  1067.    is used, the entire file will be loaded. EDLIN creates a file if the
  1068.    specified file is not found.
  1069.  
  1070. A brief summary of EDLIN commands is given below.  See the MSDOS users
  1071. reference manual for full details.
  1072.  
  1073. Many commands will allow you to specify line numbers.  You may use the
  1074. symbol . in place of the current line number and # in place of the
  1075. line number of the last line in the buffer.
  1076.  
  1077. [n]A  APPEND loads lines from the disk and places them at the end of the
  1078.       input buffer. [n] specifies the number of lines to append to
  1079.       the current file.
  1080.  
  1081. [n],[n],[n][,count]C   COPY copies the contents of a line or range of
  1082.       lines to another location.  The first two [n]'s specify the
  1083.       range of lines to copy.  The third [n] specifies the line to
  1084.       copy to. [count] specifies the number of times that the copy
  1085.       will be performed.
  1086.  
  1087. [n][,n]D   DELETE deletes a line or range of lines. The [n] parameters
  1088.       specify the first and last line to delete.
  1089.  
  1090. [n]   calls up a line of text for editing.
  1091.  
  1092. E     EXIT saves the current file and exits EDLIN.
  1093.  
  1094. [n]I  INSERT inserts lines of text in the current file. [n]
  1095.       specifies the line number where the insert will begin.
  1096.  
  1097. [n][,n]L   LIST displays a line or range of lines. [n][,n] specifies
  1098.       the first and last lines to list.
  1099.  
  1100. [n],[n],n M   MOVE moves a line or range of lines to a specified line.
  1101.       The first two [n]'s specify the first and last lines to
  1102.       move. The third line number specifies  where the text will be
  1103.       moved to.
  1104.  
  1105. [n][,n] P   PAGE allows you to scroll through a file one PAGE (23
  1106.       lines) at a time. [n][,n] specifies the first and last
  1107.       lines to display.
  1108.  
  1109. Q     QUIT exits EDLIN without saving the current file.
  1110.  
  1111. [n][,n][?] R s1^Zs2   REPLACE replaces all occurrences of a specified
  1112.       string with a second string. [n][,n] specify the range of lines
  1113.       to perform the REPLACE on.  The optional ? will request an
  1114.       O.K.?  prompt after each replace.  s1 specifies the string to
  1115.       search for and s2 is the string to replace it with. A control-Z
  1116.       separates the two strings.
  1117.  
  1118. [n][,n][?] Sstring   SEARCH searches for a specified string. [n][,n]
  1119.       specify the range of lines to perform the SEARCH on.  The
  1120.       optional ?  will request an O.K.?  prompt after each replace.
  1121.       string is the string to search for.
  1122.  
  1123. [n] Tfile   TRANSFER loads the contents of a specified file into the file
  1124.       currently being edited. [n] specifies the location where the
  1125.       file being TRANSFERred (merged) will be placed.  file is the
  1126.       file to be TRANSFERred.
  1127.  
  1128. [n]W   WRITE writes lines to disk from the file currently being edited.
  1129.       [n] specifies the number of lines to write to disk. This
  1130.       command is used to free up memory.
  1131.  
  1132. # EXE2BIN
  1133. EXE2BIN - Converts a file from .EXE format to .COM or .BIN formats.
  1134.  
  1135. COMMAND TYPE: External                  VERSION: 2.0 and up
  1136.  
  1137. USE:  EXE2BIN [d:][path]filename [d:][path][filename]
  1138.  
  1139. The first [d:][path]filename specifies the name of the input file
  1140. (.EXE file).
  1141. The second [d:][path][filename] specifies the name of the output file
  1142. (.COM file or .BIN (default) ).
  1143.  
  1144. Not all .EXE files can be converted.  EXE2BIN will report if the file
  1145. cannot be converted.  COM files are smaller and load faster than their
  1146. EXE equivalents.  This command will normally only be used by
  1147. programmers.
  1148.  
  1149. # EXIT #COMMAND
  1150. EXIT - exit the command processor and return to a previous one
  1151.  
  1152. EXIT explicitly quits the command processor and returns to the program
  1153. which called it.  This is usually used to return to programs which
  1154. temporarily created a secondary copy of command.com
  1155.  
  1156. SEE ALSO: COMMAND
  1157.  
  1158. # FASTOPEN #CONFIG.SYS #INSTALL
  1159. FASTOPEN - store location of recently used files for faster access
  1160.  
  1161. COMMAND TYPE: External                  VERSION: 3.3 and up
  1162.  
  1163. DOS locates files by searching each directory in the path to the file
  1164. each time the file is accessed. On fixed disks with complex directory
  1165. structures, this can take a large amount of time.  FASTOPEN stores in
  1166. memory the location of directories and recently opened files, and
  1167. searches this list first when opening a file.  It is most useful for
  1168. applications which open and close many files.
  1169.  
  1170. USE: FASTOPEN [d:[=n][ ... ] [/X]
  1171. or   FASTOPEN [d:[=([n],m)][ ... ] [/X]
  1172.  
  1173. d: to specify the drive to process. Any fixed disk drive may be used.
  1174. n  the number of directories or file entries to remember for the drive
  1175.    given as "d".  The default is 10. (Range is 10-999.)
  1176. m  is the number of file extent entries for the drive named (DOS 4.x only)
  1177.    If not present, the feature is not provided.
  1178. /X indicates the the FASTOPEN cache should be placed in expanded (LIM 4.0)
  1179.    memory (DOS 4.x only)
  1180.  
  1181. Fastopen works only on fixed discs (up to 4) and will not work with networks.
  1182.  
  1183. FASTOPEN can be used only once.  All drives must be defined the first
  1184. time FASTOPEN is used.
  1185. (DOS 4.x)
  1186. FASTOPEN may be executed at boot time using INSTALL in CONFIG.SYS
  1187.  
  1188. # FCBS #CONFIG.SYS
  1189. FCBS - Specifies the number of file control blocks that may be open
  1190.  
  1191. Specifies the number of file control blocks that may be open at one
  1192. time by DOS.
  1193.  
  1194. COMMAND TYPE: System Configuration              VERSION: 3.0 and up
  1195.  
  1196. USE: FCBS = n,m
  1197.  
  1198. n specifies the number of files that File Control Blocks can open at one
  1199.   time. Acceptable range is are 1-255.
  1200. m specifies the number files that DOS cannot automatically close.
  1201.  
  1202. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1203. normal DOS command.
  1204.  
  1205. File Control Blocks are an outdated method of handling files.  Most
  1206. modern software uses file handles.  This command should only be used
  1207. if older applications require it.
  1208.  
  1209. # FC #COMP #DISKCOMP
  1210. FC - compare files and report differences (ascii or binary)
  1211.  
  1212. COMMAND TYPE: External                  VERSION: 4.0 and up
  1213.  
  1214. FC compares two files, or sets of files, and reports the differences
  1215. between them.  It is more powerful than COMP and may be used with
  1216. binary or ascii (text) files.
  1217.  
  1218. USE:
  1219. (ascii) FC [/a][/c][/L][/Lb n][/n][/t][/w][/nnnn][d:]path1 [d:]path2
  1220. (bin)   FC [/b][/nnnn] [d:]path1 [d:]path2
  1221.  
  1222. d: is an optional drive specified for either path1 or path2.  Path1 and
  1223.    path2 are the path and filenames of the files to compare
  1224. /a abbreviate output of ascii comparison - output only lines that begin
  1225.    and end each set of differences.
  1226. /b binary compare - byte for byte comparison with no attempt to
  1227.    resychronise after a mismatch. This is the default for .exe, .com,
  1228.    .lib, .obj, .sys, or .bin type files.
  1229. /c ignore case in comparing ascii text
  1230. /L compare in ascii mode.  This is default except as noted above.
  1231. /Lb n  sets the internal bufffer to n lines (default is 100).  Files which
  1232.    have more than this number of consecutive mismatched lines will abort
  1233.    the comparison.
  1234. /n display line numbers (ascii only)
  1235. /t do not expand tabs to spaces.  Default is to treat tabs as spaces to 8
  1236.    column positions
  1237. /w compress whitespace (multiple tabs or spaces) into a single space
  1238.    before comparing
  1239. /nnn specified the number of lines that must match after a difference
  1240.    before FC considers the files resynchronised (default is 2).
  1241.  
  1242. SEE ALSO: COMP, DISKCOMP
  1243.  
  1244. # FDISK #FORMAT
  1245. FDISK - Installs a partition on a hard disk drive for MS-DOS
  1246.  
  1247. FDISK partitions a hard disk for use by MS-DOS and prepares it for
  1248. formatting.
  1249.  
  1250. COMMAND TYPE: External                  VERSION: 2.0 and up
  1251.  
  1252. USE: FDISK
  1253.  
  1254. FDISK is a menu driven program.  If you have any questions as to what
  1255. any particular options do, you should refer to your MSDOS reference
  1256. manual.  It should only be neccessary to use FDISK when installing a
  1257. new hard disc, or when modifying the partitions on an existing disc.
  1258.  
  1259. NOTE: Be careful with this command because you will probably destroy
  1260. any data that is on your disk.
  1261.  
  1262. # FILES #CONFIG.SYS
  1263. FILES - Sets the number of open files that DOS can access at any one time.
  1264.  
  1265. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  1266.  
  1267. USE: FILES = nn
  1268.  
  1269. nn specifies the number of files that can be accesssed via DOS system
  1270. calls at one time. The acceptable values are 8 to 255 (default is 8).
  1271. Some programs may open more files by bypassing the DOS system
  1272. services.
  1273.  
  1274. EXAMPLE: FILES = 15
  1275. After this command is placed in the CONFIG.SYS file, up to 15 files may be
  1276. open at one time.
  1277.  
  1278. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1279. normal DOS command.
  1280.  
  1281. # FIND
  1282. FIND - Searches a file for a specific string of text.
  1283.  
  1284. The FIND command searches for a text string in a file or group of files.
  1285. If no files are given, FIND reads standard input and can be used in a pipe.
  1286.  
  1287. COMMAND TYPE: External                  VERSION: 2.0 and up
  1288.  
  1289. USE:  FIND [/V][/C][/N]"string" [[d:][path]filename...]
  1290.  
  1291. filename is the file to be searched, with optional drive and path.
  1292.    Several files may be listed, but no wildcards are accepted.
  1293. /V displays the lines that don't contain the requested string.
  1294. /C displays the number of lines that contain a match of the string
  1295. /N displays the number of each line that contains a match along with the
  1296.    line of text.
  1297.  
  1298. "string" is the string of text to search for.  It must be enclosed in
  1299. quotes.  To include quotes in the string, use two sets e.g. "this is a
  1300. ""quoted string"" "
  1301.  
  1302. If no parameters are entered, all lines that contain a match of the
  1303. requested string will be displayed. The string must be an exact match
  1304. (i.e the search is case sensitive).
  1305.  
  1306. # FOR
  1307. FOR - Repeats a command for several variables in a batch file.
  1308.  
  1309. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1310.  
  1311. USE:  FOR %%var IN (set) DO command
  1312.  
  1313. %%var represents a variable that will be sequentially set to each value in
  1314. set.  If the FOR command is used in a batch file, %%var must be used, if
  1315. the FOR command is used at the DOS level, only one % is required.
  1316.  
  1317. set contains the actual values that %%var will represent when the command
  1318. is executed.  willdcard file specifiers are allowed in set.
  1319.  
  1320. command is the DOS command that will be repeated.  In the command, %%var
  1321. will be replaced by the value of the variable.
  1322.  
  1323. EXAMPLE: FOR %%g IN(*.TXT) DO TYPE %%g
  1324.  
  1325. when this command is encountered in a batch file, all files with the
  1326. extension .TXT will be TYPEd (displayed on the screen).
  1327.  
  1328. # FORMAT #SYS #LABEL #VOL
  1329. FORMAT - Initializes a disk or partition to accept MSDOS files
  1330.  
  1331. FORMAT checks for any defective tracks, and prepares the disk to
  1332. accept DOS files.  It creates the directory and file allocation tables
  1333. (FAT) and assigns a unique volume serial number.  It may also
  1334. optionally copy the MSDOS system files to the new disc.
  1335.  
  1336. COMMAND TYPE: External                  VERSION: 2.0 and up
  1337.  
  1338. USE:  FORMAT d:[/S][/1][/4][/8][/B] [/n:sectors][/t:tracks][/v:label]
  1339.              [/f:size]
  1340.  
  1341. d:  is the drive to be formatted.
  1342. /S  copies the system files from the source disk to the destination
  1343.     disk and makes the disk bootable.  There are three system files:
  1344.         IBMBIO.COM     IBMDOS.COM   COMMAND.COM
  1345.         (these files may have different names on non-IBM systems)
  1346. /1  formats a diskette on 1 side only making it a single sided
  1347.     diskette regardless of the drive type used.
  1348. /4  formats a 360k (DSDD) diskette in a high capacity drive.  Such disks
  1349.     may not always be read reliably by 360k drives because of the narrower
  1350.     tracks.
  1351. /8  formats a disk using 8 sectors per track.  (Obsolete - required to
  1352.     remain compatible with version 1.1 of DOS)
  1353. /V  will allow you to add a volume label to the diskette being
  1354.     formatted. Volume labels are a way to identify individual
  1355.     diskettes.  The label (up to 11 characters) may be specified after /v
  1356.     or will be prompted for when formatting is complete.
  1357. /B  formats a diskette using 8 sectors per track and allocates space
  1358.     for system files to be transferred later (using the SYS
  1359.     command). Using the /B option will allow you to install any
  1360.     version of the DOS system files.
  1361.  
  1362. (MSDOS 4.x extensions)
  1363. /t:tracks  specifies the number of tracks to place on the disc
  1364. /n:sectors specifies the number of sectors to place on the disc
  1365. /f:size    specifies the size of the diskette.  MSDOS chooses the
  1366.            appropriate number of tracks and sectors.  Allowable values are
  1367.            160k 180k 320k 360k 720k 1200k 1440k (may be specified with
  1368.            "k", "kb" or neither).  This cannot be used the /t or /n
  1369.  
  1370. By default, FORMAT will use the drive specification to determine the type
  1371. of disc according to the the physical drive addressed by that letter.  If
  1372. it is a non-removable hard disc, FORMAT will request confirmation before
  1373. proceeding.
  1374.  
  1375. EXAMPLE: FORMAT C: /S /V
  1376. FORMATS drive C:, copies the SYSTEM files to drive C:, and prompts the
  1377. user for a VOLUME LABEL.
  1378.  
  1379. NOTE: FORMAT destroys any existing data on the disk, and ignores any
  1380. drive reassignments made via the ASSIGN command.
  1381.  
  1382. # GOTO
  1383. GOTO - Transfers control of a batch file to a labelled line
  1384.  
  1385. The command after the line containing the appropriate label is executed.
  1386. The label cannot be on a line with any command.
  1387.  
  1388. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1389.  
  1390. USE: GOTO :label
  1391.  
  1392. In a batch file, a label is a word preceded by a colon (:).  These
  1393. lines are ignored when the batch file is executed.
  1394.  
  1395. EXAMPLE:  :begin
  1396.            format a: /s
  1397.            if errorlevel 0 goto end
  1398.            echo An error occurred during formatting
  1399.           :end
  1400.            echo End of batch file
  1401.  
  1402. # GRAFTABL #COUNTRY #NLSFUNC #CHCP
  1403. GRAFTABL - Loads foreign language characters into memory. (For CGA)
  1404.  
  1405. GRAFTABL enables an extended character set to be displayed in graphics mode
  1406. when using a CGA adaptor.
  1407.  
  1408. COMMAND TYPE: External                  VERSION: 3.0 and up
  1409.  
  1410. USE: GRAFTABL [xxx] [/status] [?]
  1411.  
  1412. The optional parameters apply only to MSDOS 3.3 and later
  1413.  
  1414. xxx  code page number - possible values are 437, 860, 863, 865 where
  1415.      437 United States  860 Portugal  863 Canada (Fr.)   865 Nordic
  1416. /STATUS displays the number of the selected country code page.
  1417. ?    displays instructions on how to use GRAFTABL
  1418.  
  1419. # GRAPHICS
  1420. GRAPHICS - enable graphics screen dump to IBM printers (CGA,EGA and VGA)
  1421.  
  1422. The GRAPHICS command will make it possible to print graphics displays
  1423. to the printer when the SHIFT and PrtScn keys are pressed. To work
  1424. properly, the printer must be a compatible printer type.  The screen
  1425. graphics display must be CGA,EGA, VGA or 8514/A.
  1426.  
  1427. COMMAND TYPE: External                  VERSION: 2.0 and up
  1428.  
  1429. USE: GRAPHICS [type] [profile][/r][/b][/lcd][/printbox:id]
  1430.  
  1431. printer type can be one of five types of printers.
  1432.  
  1433. COLOR1   - IBM Color Printer with a black ribbon.
  1434. COLOR4   - IBM Color Printer with red, green, blue, and black ribbon.
  1435. COLOR8   - IBM Color Printer with cyan, magenta, yellow, and black ribbon.
  1436. GRAPHICS - IBM personal graphics printer, Proprinter or Quietwriter
  1437. COMPACT  - IBM Compact printer. GRAPHICS - IBM Graphics Printer.
  1438. THERMAL  - IBM PC convertible thermal printer
  1439.  
  1440. profile  (DOS 4.x only) is the name of a file containing information on
  1441.          all supported printers.  If not supplied, graphics.pro is used.
  1442. /r to print black and white on the printer as they are seen on the
  1443.    monitor.  If you do not specify /R then black will be printed as white
  1444.    and white will be printed as black.
  1445. /b prints the background in color.  This switch is only valid on
  1446.    multi-color printers.  The default is to not print the background
  1447.    color.
  1448. /lcd will print using the LCD aspect ration rather than the CGA aspect ratio
  1449. /printbox:id selects the print box size.  "id" should be "ST" or "LCD"
  1450.  
  1451. In the high resolution modes the image will be printed on the printer
  1452. sideways.  The default printer type is GRAPHICS if none is supplied on
  1453. the command line
  1454.  
  1455. NOTE: Graphic screen dumps will take longer than text screen dumps.
  1456. Text screen dumps will still be possible after the GRAPHICS command is
  1457. executed.
  1458.  
  1459. # IF
  1460. IF - Performs conditional execution of commands in batch files.
  1461.  
  1462. If the condition is met then the command will be executed.  If the
  1463. condition is not met then the command will be ignored.  If the NOT
  1464. parameter is entered, the command is executed when the condition is
  1465. false.
  1466.  
  1467. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1468.  
  1469. USE: IF [NOT] condition command
  1470.  
  1471. "command" is the DOS command or program to be executed when the condition is
  1472. met. "condition" can be one of the following:
  1473.  
  1474.     errorlevel number
  1475. or  string1 == string2
  1476. or  EXIST filename
  1477.  
  1478. errorlevel number, where number is the exit code of the previously
  1479. executed program.
  1480. Some possible errorlevel numbers are:
  1481. 0 = Normal completion                  1 = No files found
  1482. 3 = Terminated by CTRL-BREAK or ESCAPE 4 = Terminated because of error
  1483.  
  1484. Some programs may return other errorlevel codes than these. The
  1485. errorlevel number condition will be true if the last program executed
  1486. has an exit code equal to or greater than the number specified.
  1487.  
  1488. string1 == string2 is true if string1 and string2 are exactly
  1489. identical after %variable substitution.  The strings may not contain
  1490. separators (,;= or spaces) To test for a null %variable, use IF
  1491. "%var"==""
  1492.  
  1493. EXIST filename is true if the specified file exists.  A drive and path
  1494. may be specified.
  1495.  
  1496. EXAMPLE: IF NOT EXIST DATA.FIL ECHO Cannot find data file
  1497.  
  1498. # INSTALL #CONFIG.SYS #FASTOPEN #KEYB #NSFUNC #SHARE
  1499. INSTALL - Execute FASTOPEN, KEYB, NLSFUNC or SHARE during boot processing
  1500.  
  1501. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  1502.  
  1503. USE:  INSTALL=[d:][path]filename [parameters]
  1504.  
  1505. INSTALL allows certain DOS commands to be executed during system
  1506. initialisation. "filename" must be one of FASTOPEN.EXE, NLSFUNC.EXE,
  1507. KEYB.EXE, SHARE.EXE, followed by any neccessary arguments.  This is
  1508. useful for ensuring that these commands are executed once only.  If
  1509. they were placed in AUTOEXEC.BAT they might be accidentally repeated
  1510. multiple times.
  1511.  
  1512. NOTE: This command must be used only in CONFIG.SYS and is not a normal
  1513. DOS command
  1514.  
  1515. SEE ALSO: CONFIG.SYS, FASTOPEN, KEYB, SHARE, NLSFUNC
  1516.  
  1517. # JOIN #SUBST #ASSIGN
  1518. JOIN - Logically links a disk drive to a directory on another drive.
  1519.  
  1520. COMMAND TYPE: External                  VERSION: 3.1 and up
  1521.  
  1522. USE:  JOIN [d: d:path]
  1523. or    JOIN d: /D
  1524.  
  1525. d:      specifies the drive to be JOINed to a directory on another drive.
  1526. d:path  specifies the directory that the previous drive will be JOINed
  1527.         to. The path must specify a root level directory only, and
  1528.         must be empty.
  1529.  
  1530. /D disconnects a previous JOIN on the specified drive.
  1531.  
  1532. JOIN entered with no parameters will display the drives and
  1533. directories that are currently JOINed.  Commands which only make sense
  1534. on a physical drive will not work on a JOINed drive (e.g. format,
  1535. chkdsk, label)
  1536.  
  1537. EXAMPLE:  JOIN E: C:\RAMDISK
  1538. This will allow a ram disk created as drive E: to be treated as a
  1539. subdirectory of the hard drive C:
  1540.  
  1541. SEE ALSO: SUBST, ASSIGN
  1542.  
  1543. # KEYB #COUNTRY #NLSFUNC #KEYBOARD.SYS #MODE #CHCP #CONFIG.SYS #KEYBUK #KEYBGR #KEYBFR #KEYBIT #KEYBSP
  1544. KEYB - Loads a keyboard handler to support foreign keyboards.
  1545.  
  1546. KEYB is a program that replaces the keyboard program resident in ROM
  1547. BIOS to support non U.S. English keyboards.  It permits you to enter
  1548. characters that are not part of the standard QWERTY keyboard set, such
  1549. as accented and umlauted characters.  The actual keys pressed to
  1550. generate such characters depends on the type of keyboard in use.
  1551.  
  1552. COMMAND TYPE: External                  VERSION: 3.3 and up
  1553.  
  1554. USE: KEYB [xx[,[yyy],[[d:][path]filename]]][/id:nnn]
  1555.  
  1556. xx  specifies the two character country code as shown below:
  1557.     UK - United Kingdom GR - Germany Fr - France IT - Italy SP - Spain
  1558. yyy specifies the numeric code page defining the character set as shown
  1559.     below:
  1560. AUSTRALIA  061  BELGIUM     032 CANADA/FRENCH 002   DENMARK     045
  1561. FINLAND    358  FRANCE      033 GERMANY       049   ITALY       039
  1562. ISRAEL     972  MIDDLE EAST 785 NETHERLANDS   031   NORWAY      047
  1563. PORTUGAL   351  SPAIN       034 SWEDEN        046   SWITZERLAND 041
  1564. U. KINGDOM 044  USA 001
  1565.  
  1566. d: path filename specifies the drive, path, and filename of the
  1567.    keyboard definition file to support a country language. The default is
  1568.    KEYBOARD.SYS
  1569. /id:nnn (DOS 4.x and later) specifies the keyboard type in use. nnn is a
  1570.    3-digit code as shown in the table above
  1571.  
  1572. NOTE: The keyboard programs on versions prior to DOS 3.3 are not
  1573. compatible and should not be executed under DOS 3.3.
  1574. KEYB which is available starting with DOS 3.3 replaces KEYBxx which
  1575. was available with earlier versions.
  1576.  
  1577. After loading a keyboard driver, you may change from the KEYB program
  1578. to the US program by pressing CTRL-ALT-F1.  You may switch back to the
  1579. KEYB program by pressing CTRL-ALT-F2.  KEYB entered without parameters
  1580. will report the current keyboard settings and code pages in use.
  1581.  
  1582. SEE ALSO: COUNTRY, NLSFUNC, KEYBOARD.SYS, MODE, CHCP
  1583.  
  1584. # KEYBOARD, KEYBOARD.SYS #KEYB #COUNTRY #NLSFUNC #CHCP #MODE
  1585. KEYBOARD.SYS - translation table for foreign keyboard codes
  1586.  
  1587. The KEYBOARD.SYS file contains tables which direct the KEYB.COM
  1588. command to convert scan codes to ascii characters. To change a
  1589. keyboard, the new keyboard must support at least one of the currently
  1590. prepared code pages for the CON device.  You can change the keyboard
  1591. without restarting the computer.  (For example, the KEYB command can
  1592. be used multiple times.)
  1593.  
  1594. The MODE command is used to prepare the new code pages required by the
  1595. new keyboard layout; only certain keyboards or code page combinations
  1596. are allowed. If a mismatch is created between keyboard and display,
  1597. character keys may not be correctly translated into the correct code
  1598. page, and incorrect characters may be displayed.
  1599.  
  1600. The following table shows the valid combinations of code pages and
  1601. keyboards:
  1602.  
  1603.           ----------------------------------
  1604.          | CODE  | KEYBOARD                 |
  1605.          | PAGE  |                          |
  1606.          |-------|--------------------------|
  1607.          |       | US, UK, Fr, GR, IT, SP,  |
  1608.          | 437   | LA, SV, SU, NL           |
  1609.          |-------|--------------------------|
  1610.          |       | UK, Fr, GR, IT, SP, DK,  |
  1611.          | 850   | NL, SU, NO, PO, SV, SF,  |
  1612.          |       | SG, CF, BE, LA, US       |
  1613.          |-------|--------------------------|
  1614.          | 860   | PO                       |
  1615.          |-------|--------------------------|
  1616.          | 863   | CF                       |
  1617.          |-------|--------------------------|
  1618.          | 865   | NO, DK                   |
  1619.           ----------------------------------
  1620.  
  1621. The KEYB command creates translation tables for each code page that
  1622. has been prepared at the time KEYB is used.  It will activate the code
  1623. page that has been requested.  If a code page is desired that is not
  1624. in that list of prepared code pages, it must be first prepared and
  1625. then KEYB should be issued again.  Refer to the MODE command for more
  1626. information.
  1627.  
  1628. If a code page has been selected previous to the KEYB command, and no
  1629. code page is specified in KEYB, it will attempt to activate the
  1630. selected code page.
  1631.  
  1632. The KEYB command sets the following errorlevel code:
  1633.  
  1634. 0 - Successful execution and termination.
  1635. 1 - Invalid language, code page, or syntax.
  1636. 2 - Bad or missing keyboard definition file.
  1637. 3 - KEYB could not create a keyboard table in resident memory.
  1638. 4 - An error condition occurred when communicating with the CON
  1639.     device.
  1640. 5 - Code page request has not been prepared.
  1641. 6 - The translation table for selected code page cannot be found in
  1642.     the resident keyboard table.
  1643.  
  1644. # KEYBUK, KEYBGR, KEYBFR, KEYBIT, KEYBSP #KEYB #KEYBOARD #NLSFUNC #MODE
  1645. KEYBxx - replace keyboard handler with support for a foreign keyboard
  1646.  
  1647. Replaces the current keyboard program with a program which will
  1648. support a foreign language keyboard.
  1649.  
  1650. COMMAND TYPE: External                  VERSION: 3.0 to 3.2 only
  1651.  
  1652. USE: KEYBxx
  1653. xx can be any one of the following:
  1654.    UK - United Kingdom GR - Germany Fr - France IT - Italy SP - Spain
  1655.  
  1656. After loading a keyboard driver, you may change from the KEYBxx
  1657. program to the US program by pressing CTRL-ALT-F1.  You may switch
  1658. back to the KEYBxx program by pressing CTRL-ALT-F2.  You can
  1659. automatically load a foreign keyboard driver by using a diskette
  1660. created using the SELECT command.
  1661.  
  1662. This command has been replaced by the KEYB command in DOS 3.3 and higher.
  1663.  
  1664. SEE ALSO: KEYB, KEYBOARD, NLSFUNC, MODE
  1665.  
  1666. # LABEL #DIR #FORMAT #VOL
  1667. LABEL - Creates, modifies, or deletes a diskette's volume label.
  1668.  
  1669. COMMAND TYPE: External                  VERSION: 3.0 and up
  1670.  
  1671. USE: LABEL [d:][volume label]
  1672.  
  1673. d:  specifies the drive which contains the diskette to be labeled.
  1674. volume label specifies the label to be written on the disk.  A volume
  1675.     label can be up to 11 characters long.  If you do not specify a volume
  1676.     label when using the LABEL command you will be prompted for one.
  1677.  
  1678. The volume label is reported by the DIR and VOL commands to show you
  1679. which diskette you are using.  The label may contain spaces, but not
  1680. tabs or any of the following characters "*?/.,;:+=<>[]()&^"
  1681.  
  1682. # LASTDRIVE #CONFIG.SYS
  1683. LASTDRIVE - Specifies the maximum number of drives accessible by DOS.
  1684.  
  1685. COMMAND TYPE: System Configuration              VERSION: 3.0 and up
  1686.  
  1687. USE: LASTDRIVE = x
  1688. x can be any letter from A through Z.
  1689.  
  1690. The letter that you enter will represent the last drive available in
  1691. the system.  If you enter a letter which is less than the total number of
  1692. drives on your system, the LASTDRIVE command will be ignored.
  1693. LASTDRIVE is intended for use in a network environment.
  1694.  
  1695. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  1696. normal DOS command.
  1697.  
  1698. # LINK #EXE2BIN
  1699. LINK - link .obj files and libraries to produce executable programs
  1700.  
  1701. COMMAND TYPE: External                          VERSION: 1.0 and up
  1702.  
  1703. The LINK command is used to combine object module format files (.obj)
  1704. produced by high level language compilers such as FORTRAN, C or
  1705. PASCAL, or from assemblers such as MASM, with libraries of precompiled
  1706. routines, and produce executable program files (.EXE).  LINK is
  1707. intended for use by programmers only.  See the MSDOS TECHNICAL
  1708. REFERENCE for full details
  1709.  
  1710. SEE ALSO: EXE2BIN
  1711.  
  1712. #MEM #CHKDSK
  1713. MEM - display memory use and amount remaining
  1714.  
  1715. MEM displays the amount of memory used (including extended and expanded
  1716. memory if used) and memory available. It also lists all programs loaded
  1717. and how much memory is used by each.
  1718.  
  1719. COMMAND TYPE: External                  VERSION: 4.0 and up
  1720.  
  1721. USE: MEM [/program] [/debug]
  1722. /program  displays programs loaded in memory
  1723. /debug    displays programs and also device drivers
  1724.  
  1725. You cannot specify /program and /debug at the same time.  If memory
  1726. above 1Mb is installed as extended memory, then that is reported.  If
  1727. a LIM 4.0 expanded memory manager is present, then expanded memory is
  1728. reported also.
  1729.  
  1730. # MKDIR, MD #RMDIR #CD
  1731. MKDIR, MD - Creates a subdirectory.
  1732.  
  1733. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  1734.  
  1735. USE: MKDIR [d:]path
  1736.  
  1737. d:path specifies the drive and path where the subdirectory will be
  1738.        located.  Path must be 63 characters long or less.
  1739.  
  1740. NOTE: MKDIR and MD are identical commands
  1741.  
  1742. SEE ALSO: RMDIR, CD
  1743.  
  1744. # MODE #COUNTRY #NLSFUNC #CHCP #KEYB
  1745. MODE - set mode of operation for printers, comm ports, display, keyboard
  1746.  
  1747. MODE is used to display or set the mode of operation for a printer,
  1748. asynchronous adapter, or graphics monitor.  It also can redirect
  1749. parallel printer output to the asynchronous adapter, prepare devices
  1750. for code page switching, and change the keyboard auto-repeat rate.
  1751.  
  1752. COMMAND TYPE: External                  VERSION: 2.0 and up
  1753.  
  1754. The various possible uses of mode will be explained in groups
  1755. depending on the devices affected. NOTE: The exact options available
  1756. for MODE vary with different DOS versions.  Refer to your DOS
  1757. reference manual for more information
  1758.  
  1759. MODE - device status
  1760.  
  1761. USE: MODE [device][/status]
  1762. device  is the device to display status for (CON, PRN, LPT1, COM1 etc.)
  1763. /status is required only for the status of redirected parallel printers
  1764.         If no device is specified, MODE reports the status of all
  1765.         installed devices
  1766.  
  1767. MODE - configure printer
  1768.  
  1769. USE: MODE LPT#[:][n][,[m[,R]]
  1770.  
  1771. LPT# represents the printer (LPT1,LPT2,LPT3)
  1772. n    specifies either 80 or 132 characters per line
  1773. m    specifies 6 or 8 lines per inch
  1774. R    specifies a retry action to take when the printer is not ready.
  1775.      (DOS 3.3 and earlier) only value is "P" - continue trying when
  1776.      printer is busy.
  1777.      (DOS 4.x) Possible values for R are:
  1778.       "E" - return error if printer busy
  1779.       "B" keep trying if busy (same as "P" in earlier versions)
  1780.       "R" returns "ready" even if printer status says not-ready
  1781.  
  1782. Default values are LPT1, 80 columns, 6 lpi
  1783.  
  1784. MODE - Monitor display mode
  1785.  
  1786. USE: MODE display, n
  1787. or   MODE [display],shift
  1788. or   MODE con[:][cols=n][lines=m]
  1789.  
  1790. display is one of the following options describing the monitor attached.
  1791.  
  1792. 40   screen width of 40 characters (CGA only)
  1793. 80   screen width of 80 characters (CGA only)
  1794. BW40 disables color on a color monitor and sets screen width to 40
  1795. BW80 disables color on a color monitor and sets screen width to 80
  1796. CO40 enables color on a color monitor and sets screen width to 40
  1797. CO80 enables color on a color monitor and sets screen width to 80
  1798. MONO selects a monochrome monitor (fixed width of 80 characters)
  1799.  
  1800. shift - set to "L" or "R" shifts the display left or right to align
  1801.         correctly (CGA only)
  1802.  
  1803. (DOS 4.x only)
  1804. n -  number of lines on display (values are 25 (all displays), 43
  1805.      (EGA/VGA) and 50 (VGA only)
  1806. m  - number of columns (values are 40 or 80)
  1807.  
  1808. MODE - Set keyboard repeat rate (DOS 4.x only)
  1809.  
  1810. USE: MODE con[:] rate=r delay=d
  1811. r - autorepeat interval time (1-32)
  1812. d - autorepeat start delay time (1-4, corresponding to 0.25, 0.5, 0.75,
  1813.     1.0 seconds)
  1814.  
  1815. MODE - configure asynchronous adapter (Serial Port)
  1816.  
  1817. USE: MODE COM#[:]b[,p[,d [,s[,r]]]]
  1818. or   (DOS 4.x and later)
  1819.      MODE COM# baud=b[ data=d][stop=s][parity=p][retry=r]
  1820.  
  1821. COM# is the asynchronous adapter to select.  The acceptable values for #
  1822.      are 1,2,3 or 4 (1,2 only for pre DOS 4.x)
  1823. b    selects the speed that the asynchronous adapter will operate at. Only
  1824.      the first two digits are given.  Acceptable values are:
  1825.        110, 150, 300, 600, 1200, 2400, 4800, and 9600.
  1826. p    selects number or parity bits.  Acceptable values for "p" are
  1827.        N(none), O (odd), or E (even).
  1828. d    is the number of data bits (7 or 8)
  1829. s    is number of stop bits (1 or 2)
  1830. r    specifies a retry action to take when the serial device is not ready.
  1831.      (DOS 3.3 and earlier)
  1832.        only value is "P" - continue trying when device is busy.
  1833.      (DOS 4.x) Possible values for r are:
  1834.        "E" - return error if device busy
  1835.        "B" keep trying if busy (same as "P" in earlier versions)
  1836.        "R" returns "ready" even if device status says not-ready
  1837.  
  1838. EXAMPLE: MODE COM1:96,N,8,1,P
  1839. selects asynchronous port #1 and sets it for 9600 baud, no parity, 8
  1840. databits, 1 stopbit, and sets it to be used with a printer with continuous
  1841. retry.
  1842.  
  1843. MODE - Redirect printing to a serial port
  1844.  
  1845. USE: MODE LPT#[:] [= COMn]
  1846.  
  1847. LPT# is the parallel port number to be redirected.
  1848. COMn is the asynchronous adapter that the output will be redirected to.
  1849.      If not given, then any prior redirection of LPT1 is disabled.
  1850.  
  1851. EXAMPLE: MODE LPT1: = COM1
  1852. redirects output from LPT1 to COM1.  Any future attempts to print to
  1853. LPT1 will be automatically routed to COM1.  This example assumes that
  1854. COM1 has been initialised using a previous MODe command.
  1855.  
  1856. MODE - Set device code pages (DOS 3.3 and later)
  1857.  
  1858. USE: MODE device CODEPAGE PREPARE = ((cp) [d:][path]filename)
  1859. or   MODE device CODEPAGE SELECT = cp
  1860. or   MODE device CODEPAGE [/STATUS]
  1861. or   MODE device CODEPAGE REFRESH
  1862.  
  1863. NOTE: The following abbreviations may be used
  1864.  cp  - CODEPAGE     PREP - PREPARE    SEL - SELECT
  1865.  REF - REFRESH      STA  - STATUS
  1866.  
  1867. device specifies one of CON, PRN, LPT1, LPT2, or LPT3.
  1868. cp     specifies one code page number. The code page must be of the
  1869.        following values, 437, 850, 860, 863, 865.
  1870. d: path filename specifies the name of the file containing the code
  1871.        pages. The code page information files provided on the DOS start up
  1872.        diskette have the extension of .CPI
  1873.          4201.CPI - IBM PROPRINTER    5202.CPI - IBM Quietwriter III
  1874.           EGA.CPI - EGA DEVICES        LCD.CPI - IBM CONVERTIBLE LCD
  1875.  
  1876. PREPARE - tells MSDOS to prepare the specified code page for the specified
  1877.           device.  You must prepare a code page before it can be used by
  1878.           the device.
  1879. SELECT -  selects the code page for use by a device.  It must have been
  1880.           PREPAREd first.
  1881. REFRESH - this reinstates prepared code pages which have been lost due to
  1882.           hardware or other errors (such as turning off the printer).
  1883. /STATUS - displays current code pages prepared for a device
  1884.  
  1885. EXAMPLE: MODE LPT1 cp PREP=(850) 4201.cpI
  1886. This example specifies code page of 850 to be prepared for LPT1 and the
  1887. character shapes for IBM Proprinter Model 4201
  1888.  
  1889. SEE ALSO: KEYB, NLSFUN, COUNTRY
  1890.  
  1891. # MORE #TYPE
  1892. MORE - Displays input one screen at a time.
  1893.  
  1894. The message 'MORE' will appear if more data is available.
  1895.  
  1896. COMMAND TYPE: External                  VERSION: 2.0 and up
  1897.  
  1898. USE: MORE <file
  1899. or   command | MORE
  1900.  
  1901. This filter is usually used in conjunction with the | (pipe).  The
  1902. pipe is used to send the output from a command and send it to another
  1903. to be processed.  More ONLY reads standard input (which may be a pipe
  1904. or redirected to come from a file)
  1905.  
  1906. EXAMPLE: DIR | MORE
  1907. The output from DIR will be piped to MORE and will be displayed one screen
  1908. at a time.
  1909.  
  1910. # NLSFUNC #CHCP #COUNTRY #KEYB #MODE #INSTALL
  1911. NLSFUNC -  support for extended country information and code pages
  1912.  
  1913. NLSFUNC allows you to use the CHCP command to select code pages for
  1914. all devices defined as having code page switching support. NLSFUNC
  1915. must be loaded prior to using the CHCP command.
  1916.  
  1917. COMMAND TYPE: External                  VERSION: 3.3 and up
  1918.  
  1919. USE: NLSFUNC [[d:][path]filename]
  1920.  
  1921. d:path filename specifies the location and name of the country
  1922.        information file (COUNTRY.SYS).  If this parameter is omitted,
  1923.        the drive path and filename defined by COUNTRY= command in the
  1924.        CONFIG.SYS file are used.  The file name must be included if
  1925.        drive or path are specified.
  1926.  
  1927. (DOS 4.x)
  1928. NLSFUNC may be executed at boot time using INSTALL in CONFIG.SYS
  1929.  
  1930. EXAMPLE: NLSFUNC C:\DOS\COUNTRY.SYS
  1931. This example loads the NLSFUNC command and specifies the location of
  1932. the COUNTRY.SYS file in a directory called DOS.
  1933.  
  1934. SEE ALSO: CHCP, MODE, COUNTRY, KEYB
  1935.  
  1936. # PATH #APPEND
  1937. PATH - Sets the path of directories that DOS will search for programs
  1938.  
  1939. The current directory is always searched first.
  1940.  
  1941. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  1942.  
  1943. USE:  PATH [[d:]path[[;[d:] path]...]]]
  1944.  
  1945. d: path; d: path;... define the paths that DOS will search for
  1946.      commands and programs. The paths are separated by ";" and the maximum
  1947.      length is 127 characters.
  1948. PATH     with no arguments will report the current path.
  1949. PATH ;   will delete the current path.
  1950.  
  1951. COMMAND.COM uses PATH to search for commands and programs.  The
  1952. current directory is always searched first, followed by the
  1953. directories in the PATH command, in the order specified.  Executable
  1954. files have extensions .COM, .EXE, and .BAT .  Within each directory
  1955. the search order is COM, EXE, BAT.  The path is stored in the
  1956. environment string PATH.
  1957.  
  1958. # PAUSE
  1959. PAUSE - Suspends execution of a batch file until a key is pressed.
  1960.  
  1961. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  1962.  
  1963. USE: PAUSE [comment]
  1964.  
  1965. comment is an optional comment that may be entered.  It will be
  1966. displayed when PAUSE is executed.
  1967.  
  1968. EXAMPLE:  PAUSE Insert next disc in drive A
  1969. When this PAUSE command is executed, the following message will appear.
  1970.  
  1971. Insert next disc in drive A
  1972. Strike any key to continue ...
  1973.  
  1974. The message Strike a key when ready is automatically displayed
  1975. whenever the PAUSE command is used.  The comment line will not appear
  1976. if ECHO is off.  At a PAUSE point, a batch file may be terminated by
  1977. pressing CTRL-C or CTRL-BREAK.
  1978.  
  1979. # PRINT #PRINTER
  1980. PRINT - Prints text (ascii) files in the background mode.
  1981.  
  1982. PRINT will place filenames in the queue for background printing
  1983.  
  1984. COMMAND TYPE: External                  VERSION: 2.0 and up
  1985.  
  1986. USE:  PRINT [/D: device] [/B:bufsize] [/U:busy] [/M:maxtick]
  1987.       [/S:timeslice] [/Q:qsize][/C][/T][/P]  [[d:][path][filename]...]
  1988.  
  1989. FIRST USE ONLY:
  1990. /D:device     specifies the device to PRINT to. Default is PRN; other
  1991.               valid devices are LPTx (x=1,2,3) and COMx (x=1-4)
  1992. /B:bufize     specifies the size of the buffer (in bytes). Default is 512,
  1993.               range is 512-1634
  1994. /U:busy       specifies the number of clock ticks that PRINT will wait
  1995.               while the print device is busy or unavailable. Default is 1
  1996. /M:maxtick    specifies the number of ticks that PRINT can have to print
  1997.               to the print device.  Values from 1 to 255 will be accepted.
  1998.               Default is 2
  1999. /S:timeslice  specifies the interval of time used by the MSDOS scheduler
  2000.               for the PRINT command.  Values from 1 to 255 will be
  2001.               accepted. Default is 8.
  2002. /Q:qsize      specifies the number of PRINT files that may be in the queue.
  2003.               Values from 4 to 32 are acceptable. Default is 10
  2004.  
  2005. SUBSEQUENT USE
  2006. /C            selects the cancel mode. Removes preceding filename and all
  2007.               following filenames from the queue.
  2008. /T            terminates the entire PRINT procedure. All files currently
  2009.               being PRINTed will be cancelled.
  2010. /P            sets the print mode. The preceding filename and any files
  2011.               following /P will be added to the PRINT queue.
  2012.  
  2013. d: path filename... is a list of files to PRINT.  wildcards are accepted.
  2014.               The maximum length of a path and filename is 64 characters,
  2015.               hence it may be neccessary to change directories before
  2016.               issuing the command.
  2017.  
  2018. EXAMPLE: PRINT *.DOC /C
  2019. will cancel all files with an extension of DOC from the print queue.
  2020.  
  2021. EXAMPLE: PRINT TEST.DOC /C T.DOC /P
  2022. cancels TEST.DOC and adds T.DOC to the print queue.
  2023.  
  2024. # PRINTER, PRINTER.SYS #CHCP #NLSFUNC #DEVICE #CONFIG.SYS
  2025. PRINTER.SYS - Support for code page switching on IBM printers.
  2026.  
  2027. This is a device driver to support code page switching on certain
  2028. types of printers. Printers supported are Proprinter Model 4201 and
  2029. IBM Quietwriter III Printer Model 5202.
  2030.  
  2031. USE: DEVICE=[d:][path][PRINTER.SYS LPT#[:] = (type[,[hwcp[,...]][,n]])
  2032.  
  2033. LPT# specifies the printer device and can be entered up to three
  2034.      times, one for printers LPT1, LPT2, and LPT3.  The device name PRN
  2035.      may be used in place of LPT1.
  2036. type specifies one of the following printer types:
  2037.        4201 - IBM Proprinter Model 4201 or 4202 XL
  2038.        5202 - IBM Quietwriter III Model 5202
  2039.        4208 - IBM 4207 or 4208, Proprinter X24 or XL24
  2040. hwcp specifies the code page image built into the hardware (437, 850, 860,
  2041.      863, or 865).  For some printers multiple code pages may be
  2042.      specified. For the IBM Quietwriter III Model 5202, the hwcp can be
  2043.      one code page, such as 437, or it can be a pair of code pages, such
  2044.      as (437,850). For the IBM Quietwriter III Model 5202, if two hardware
  2045.      code pages have been specified, then no code pages can be prepared,
  2046.      and the value of n must equal zero.
  2047. n    specifies the number of additional code pages that can be prepared.
  2048.      The value of n determines the number of buffers PRINTER.SYS will set
  2049.      up to hold code pages being prepared.  The maximum number of code
  2050.      pages that can be prepared is 12.  This figure is dependant on the
  2051.      printer hardware
  2052.  
  2053. EXAMPLE: DEVICE=PRINTER.SYS LPT1:= (4201, 437, 1) LPT2:=(5202, 437, 0)
  2054. This example installs the code page switching for the LPT1: and LPT2:
  2055. devices.  It instructs the LPT1: driver that the printer is a IBM
  2056. Proprinter Model 4201 and the LPT2: driver that the printer is an IBM
  2057. Quietwriter III Model 5202.  Both printers have the 437 code page
  2058. built in.  The LPT1: driver is able to hold one code page prepared by
  2059. the MODE command, while the LPT2: driver can have one code page
  2060. prepared.
  2061.  
  2062. # PROMPT #ANSI.SYS
  2063. PROMPT - Changes the DOS prompt.
  2064.  
  2065. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2066.  
  2067. USE: PROMPT [prompt-text]
  2068.  
  2069. prompt-text may be a text message or one of several special
  2070. characters.  The special characters are listed below along with the
  2071. prompt that they will display.
  2072.  
  2073. $t - system time    $d - system date          $p - current directory
  2074. $v - version number $n - default drive letter $g - >
  2075. $l - <              $b - |                    $q - =
  2076. $h - BACKSPACE      $e - ESCAPE               $_ - perform a carriage
  2077.                                                   return and line feed
  2078.  
  2079. If ANSI.SYS has been installed, then ansi sequences may be included to
  2080. use reverse video or other special effects in the prompt
  2081.  
  2082. EXAMPLE: PROMPT $p$g
  2083. will cause the prompt line to display the current directory and the >
  2084. character.
  2085.  
  2086. # RECOVER #CHKDSK
  2087. RECOVER - Recovers a file or complete disk that contains bad sectors.
  2088.  
  2089. COMMAND TYPE: External                  VERSION: 2.0 and up
  2090.  
  2091. USE: RECOVER [d:][path]filename
  2092. or   RECOVER d:
  2093.  
  2094. d: path filename specifies the drive, path, and filename of the file
  2095.       or files that you wish to recover.
  2096.  
  2097. If a filename is specified, only that file will be recovered.  If only
  2098. a drive is specified, all files on that disc will be recovered.
  2099. Individually recovered files will simply be written over the old file
  2100. (without the defective sectors).
  2101.  
  2102. NOTE: When you recover an entire disk, all files will be renamed and
  2103. the files which have been recovered will be named in the following
  2104. manner.
  2105.   FILEnnnn.REC
  2106. where nnnn is a sequential number starting at 001. These files will be
  2107. placed in the root directory.  Since this directory can only hold a
  2108. limited number of files, files may be lost when using this command.
  2109. It is safer to recover the files individually.
  2110.  
  2111. # REM
  2112. REM - Displays a remark during the execution of a batch file.
  2113.  
  2114. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  2115.  
  2116. USE: REM [comment]
  2117.  
  2118. If ECHO is on, the entire line is echoed to the screen during
  2119. execution of the batch file.  A comment is generally used to display
  2120. messages during execution or to remind the programmer what the parts
  2121. of the batch files are for.  Blank REM lines can also be used in a
  2122. batch file to improve readability.
  2123.  
  2124. EXAMPLE: REM This is a test!
  2125. will display the message:
  2126.      REM This is a test!
  2127.  
  2128. (DOS 4.x and later) REM may also be used in CONFIG.SYS
  2129.  
  2130. # REN, RENAME #COPY #REPLACE
  2131. RENAME - Renames a file (or group of files).
  2132.  
  2133. RENAME changes the name of a file or group of files.  REN and RENAME
  2134. are the same command.  willdcard characters ?  and * are allowed in
  2135. the filenames.
  2136.  
  2137. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2138.  
  2139. USE:  REN] [d:][path] filename filename
  2140.  
  2141. d: path filename specifies the file(s) to be RENAMEd.
  2142.  
  2143. The second filename is the new name for the file(s).
  2144.  
  2145. EXAMPLE: REN *.C *.BAK  changes the name of all files ending with .C to
  2146. the same name, but with .BAK as the extension.
  2147.  
  2148. NOTE: RENAME may not move a file into another directory.  There are
  2149. programs available which can do this, without copying the file.
  2150.  
  2151. # REPLACE #RENAME #COPY #XCOPY
  2152. REPLACE - Replaces files on a disk or adds files to a disk.
  2153.  
  2154. REPLACE is very similar to COPY, but several additional options are
  2155. available with REPLACE.  It is used to update sets of files in a
  2156. target directory from those in a source directory.
  2157.  
  2158. COMMAND TYPE: External                  VERSION: 3.2 and up
  2159.  
  2160. USE:  REPLACE [d:][path]sourcefile [d:][targetpath][/A][/P][/R][/S][/W]
  2161.  
  2162. d: path sourcefile specifies the filenames on the source disk that will
  2163.    replace the files on the destination disk.
  2164. d: targetpath specifies the destination drive and directory of the files
  2165.    that are to be replaced.
  2166. /A causes REPLACE to add only the files that do not already exist on
  2167.    the destination disk.  /A cannot be used with /S or /U
  2168. /P causes REPLACE to prompt you whether or not you want to replace each
  2169.    file.
  2170. /R causes REPLACE to replace the read only files as well as unprotected files
  2171. /S causes REPLACE to search all subdirectories on the destination path
  2172.    for matching files.  Matching files found in any subdirectory will
  2173.    be REPLACEd.  /S and /A can not be used together.  subdirectories in the
  2174.    source path are never searched.
  2175. /W causes REPLACE to wait for you to insert a disk before searching for
  2176.    source files.
  2177.  
  2178. EXAMPLE: REPLACE A:TEST.BAS C:\ /S
  2179. REPLACE will replace any copy of the file TEST.DAT in any and all
  2180. directories on drive C: with the copy on drive A:
  2181.  
  2182. SEE ALSO: COPY, XCOPY
  2183.  
  2184. # RESTORE #BACKUP
  2185. RESTORE - Restores backed up files from one disk to another.
  2186.  
  2187. COMMAND TYPE: External                  VERSION: 2.0 and up
  2188.  
  2189. RESTORE is used to restore files that were copied using the BACKUP
  2190. command.  Options control which files are to be restored.
  2191.  
  2192. USE:  RESTORE d: [d:][path]filename [/S][/P] [/B:mm:dd:yy] [/A:mm:dd:yy]
  2193.               [/M][/N] [/L:time] [/E:time]
  2194. d: specifies the drive that contains the backed up files (files
  2195.    created using the BACKUP command).
  2196. d: path filename specifies the names of the files that you want to
  2197.    restore and where you want to put them.
  2198. /S restores the files in all subdirectories.  If /S is not
  2199.    specified, only the current directory is restored.
  2200. /P causes RESTORE to prompt you before restoring files that have
  2201.    changed since they were backed up.  /P will also cause RESTORE to
  2202.    prompt you before it restores a read-only file.
  2203.  
  2204. (DOS 3.3 and later)
  2205. /B:mm-dd-yy restores all files modified on or before the date
  2206.             specified by mm-dd-yy.
  2207. /A:mm-dd-yy restores all files modified on or after the date
  2208.             specified by mm-dd-yy.
  2209. /M          restores files modified or deleted since they were backed up.
  2210. /N          restores files that no longer exist on the target disk.
  2211. /L:time     restores only those files that were modified at or later
  2212.             than the given time.
  2213. /E:time     restores only those files that were modified at or earlier
  2214.             than the given time.
  2215.  
  2216. EXAMPLE: RESTORE A: C:\*.* /S
  2217. will restore all files on drive A: (which had previously been backed
  2218. up using BACKUP) to drive C:.  All subdirectories will be restored.
  2219.  
  2220. SEE ALSO: BACKUP
  2221.  
  2222. # RMDIR,RD #MKDIR #CD
  2223. RMDIR, RD - Remove a subdirectory.
  2224.  
  2225. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2226.  
  2227. USE: RMDIR [d:]path
  2228.  
  2229. d: path specifies the subdirectory to remove.
  2230.  
  2231. The subdirectory to be removed must be empty or RMDIR will not be
  2232. allowed.  RD is identical to RMDIR.
  2233.  
  2234. SEE ALSO: MKDIR, CD
  2235.  
  2236. # SELECT #FORMAT #SYS
  2237. SELECT - Installs DOS on a new disk.
  2238.  
  2239. SELECT also creates a config.sys file and autoexec.bat file and
  2240. installs the keyboard and country codes. CAUTION!!! This command
  2241. formats the disk.
  2242.  
  2243. COMMAND TYPE: External                  VERSION: 3.0 and up
  2244.  
  2245. (DOS 3.x)
  2246. USE:  SELECT [[A:| B:] D:[path]] xxx yy
  2247.  
  2248. [A:| B:] specifies either drive A or drive B as the source drive.  The
  2249.     only valid choices are A or B.  If you do not specify a source drive,
  2250.     drive A will be used.  The source drive should contain a DOS diskette.
  2251. D:path selects the drive and path that the DOS files will be copied to.
  2252.     If no drive is specified, drive B will be used.  If no path is
  2253.     specified, the files will be copied to the root directory.
  2254. xxx specifies the country code.
  2255. yy  selects the keyboard code.
  2256.  
  2257. (DOS 4.x)
  2258. USE:  SELECT MENU
  2259.  
  2260. Insert the install disk in drive A, make it the default drive, then type
  2261. SELECT MENU and follow the directions.  SELECT is completely menu driven
  2262. from this point.
  2263.  
  2264. SEE ALSO: KEYB for complete list of country and keyboard codes
  2265.  
  2266. # SET
  2267. SET - Sets or displays the command processor's environment
  2268.  
  2269. Application programs and commands may inspect the environment string.
  2270.  
  2271. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2272.  
  2273. USE: SET [name=[parameter]]
  2274.  
  2275. If you enter SET with no parameters, the current settings will be
  2276. displayed.  If you enter SET and name with no parameter, then the
  2277. current setting for name will be deleted from the current environment.
  2278.  
  2279. EXAMPLE: SET EDITOR=ZW
  2280. After this command has been executed, an application program could
  2281. examine the environment string and determine that EDITOR has been set
  2282. equal to ZW This information might be used by the application program
  2283. to start up the user's favourite editor on a file.
  2284.  
  2285. # SHARE #INSTALL
  2286. SHARE - Loads extra support for file sharing and locking
  2287.  
  2288. This command is used primarily by network applications.
  2289.  
  2290. COMMAND TYPE: External                  VERSION: 3.0 and up
  2291.  
  2292. USE:  SHARE [/F:space] [/L:locks]
  2293.  
  2294. /F:space allocates file space in bytes for the area used to
  2295.     record information necessary for file sharing (default 2048).
  2296. /L:locks allocates space for the number of locks that you want.
  2297.   (default 20)
  2298.  
  2299. SHARE is used by MSDOS to prevent multiple programs from attempting to
  2300. write to the same file at once.  Once installed, all read and write
  2301. requests are validated.
  2302.  
  2303. (DOS 4.x and later)
  2304. SHARE may be executed at boot time using INSTALL in CONFIG.SYS
  2305.  
  2306. # SHELL #COMMAND #CONFIG.SYS
  2307. SHELL - Allows another command processor (shell) to be used
  2308.  
  2309. The SHELL command specifies the program to be loaded when the system
  2310. is booted.  It allows another program to be used in of COMMAND.COM.
  2311.  
  2312. COMMAND TYPE: System Configuration      VERSION: 2.0 and up
  2313.  
  2314. USE:  SHELL = [d:][path]filename [parameters ...]
  2315.  
  2316. d: path filename specifies the file that will be loaded in place of
  2317.    COMMAND.COM.  Any parameters specified will be passed to this file
  2318.    when it is executed.
  2319.  
  2320. MSDOS sets the COMSPEC environment variable to the filename specified
  2321. in SHELL. This is used to reload the command processor whenever it is
  2322. neccessary.
  2323.  
  2324. NOTE: This command must be placed in the CONFIG.SYS file and is not a
  2325. normal DOS command.
  2326.  
  2327. # SHIFT
  2328. SHIFT - Allows use of more than 10 parameters within a batch file.
  2329.  
  2330. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  2331.  
  2332. USE: SHIFT
  2333.  
  2334. When more than one replaceable parameter is used, SHIFT will shift the
  2335. parameter list one position to the left.
  2336.  
  2337. EXAMPLE: Assume that there is a batch file called COPYFILE.BAT that
  2338. copies files from one drive to another. Also assume that it uses 4
  2339. replaceable parameters, %0, %1, %2, and %3. If you invoke COPYFILE.BAT
  2340. using the replaceable parameters:
  2341.  
  2342.      COPYFILE *.DAT *.EXE *.COM *.BAT
  2343.  
  2344. then %0 equals *.DAT, %1 equals *.EXE, %2 equals *.COM, and %3 equals
  2345. *.BAT.  After a SHIFT command is issued, the list of parameters will shift
  2346. one to the left and, %0 will equal *.EXE, %1 will equal *.COM, and %2 will
  2347. equal *.BAT.
  2348.  
  2349. # SMARTDRV, SMARTDRV.SYS #DEVICE #CONFIG.SYS
  2350. SMARTDRV.SYS - a disc cache in extended or expanded memory (for hard discs)
  2351.  
  2352. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  2353.  
  2354. USE: DEVICE=[d:][path]SMARTDRV.SYS [size] [a]
  2355.  
  2356. d:path is an optional path to the SMARTDRV.SYS file
  2357. size   is the amount of memory to use for the cache (in kb).  The default
  2358.        is 256k in extended memory, or all of available expanded memory.
  2359. /a     specifies that the cache should be placed in expanded memory (or in
  2360.        extended memory being used as expanded memory)
  2361.  
  2362. A disc cache is an area of memory used to store recently accessed
  2363. sectors of a hard disc.  If subsequent read requests refer to those
  2364. same sectors, they are simply transferred within memory, which is much
  2365. faster than reading from the disc.  SMARTDRV.SYS provides a cache in
  2366. extended or expanded memory only (it cannot be placed in convenional
  2367. memory).  It will greatly improve performance for applications which
  2368. use many small files, such as some database applications
  2369.  
  2370. NOTE: This command should be placed in CONFIG.SYS and is not a normal DOS
  2371. command
  2372.  
  2373. # SORT
  2374. SORT - Reads data from a device, sorts it and writes it.
  2375.  
  2376. COMMAND TYPE: External                  VERSION: 2.0 and up
  2377.  
  2378. USE: SORT [/R][/+n]
  2379.  
  2380. /R  causes SORT to sort in reverse order.  For example, Z comes before
  2381.     A and 9 comes before 1.
  2382. /+n causes SORT to sort starting with column n.
  2383.  
  2384. This command is usually used in conjunction with a pipe ( | ) or with
  2385. file redirection ( < or > ).
  2386.  
  2387. EXAMPLE: DIR | SORT /+10
  2388. will read a directory, sort the directory using column 10 (the filename
  2389. extension) to sort by, and then display the directory.
  2390.  
  2391. EXAMPLE: SORT < UNSORTED > SORTED
  2392. will read the file UNSORTED, sort it and write the results to the file
  2393. SORTED.
  2394.  
  2395. # STACKS #CONFIG.SYS
  2396. STACKS - supports the dynamic use of data stacks
  2397.  
  2398. COMMAND TYPE: System configuration      VERSION: 4.0 and up
  2399.  
  2400. USE: STACKS=n,s
  2401.  
  2402. n   number of stacks (0-64)
  2403. s   size of each stack (0-512) in bytes
  2404.  
  2405. When there is a hardware interrupt, MSDOS can switch stacks and allocate a
  2406. new one from the number specified in the STACKS command.  If STACKS=0,0 is
  2407. specified, no stack switching occurs at interrupt time.
  2408.  
  2409. DEFAULTS:
  2410.    IBM PC/XT/PC-portable    0,0
  2411.    IBM AT and PS/2 family   9,128
  2412.  
  2413. NOTE: This command should be placed in CONFIG.SYS and is not a normal DOS
  2414. command
  2415.  
  2416. # SUBST #ASSIGN #JOIN
  2417. SUBST - Refer to a directory as a virtual drive
  2418.  
  2419. COMMAND TYPE: External                  VERSION: 3.1 and up
  2420.  
  2421. USE: SUBST [d:] [d:path] [/D]
  2422.  
  2423. d:     specifies the drive letter that you will use as a substitute
  2424.        for a particular drive and path.  This cannot be the default drive.
  2425. d:path specifies the drive letter and path that you will refer to with a
  2426.        the new drive name.
  2427. /D     deletes a substitution.  You must also specify the drive letter of
  2428.        the drive whose substitution you want to delete.
  2429.  
  2430. Without any arguments, SUBST reports all currently SUBSTituted drives.
  2431.  
  2432. EXAMPLE: SUBST J: C:\DOS
  2433. will allow you to treat the directory C:\DOS as a drive.  After
  2434. executing this SUBST command, DIR J: and DIR C:\DOS would give
  2435. identical results.
  2436.  
  2437. EXAMPLE: SUBST J: /D
  2438. will delete the substitution created in the previous example.
  2439.  
  2440. # SYS #FORMAT #SELECT
  2441. SYS - Transfers the operating system to another disk.
  2442.  
  2443. COMMAND TYPE: External                  VERSION: 2.0 and up
  2444.  
  2445. USE: SYS d:
  2446.  
  2447. d: specifies the drive that you wish to transfer the system files to.
  2448.  
  2449. IBMBIO.COM and IBMDOS.COM are the two hidden files that are copied by
  2450. the SYS command. SYS does not copy the command processor COMMAND.COM
  2451.  
  2452. (DOS 3.3 and earlier)
  2453. DOS expects IBMBIO.COM and IBMDOS.COM to be the first two files in the
  2454. directory. If you get an error using the SYS command it is probably
  2455. because one or both of the first two positions are already occupied.
  2456. This restriction does not apply to DOS 4.0 and later.
  2457.  
  2458. With compatible but non-IBM systems, the MSDOS system files may have
  2459. other names.
  2460.  
  2461. # TIME #DATE
  2462. TIME - Displays and sets the system time.
  2463.  
  2464. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2465.  
  2466. USE: TIME [hh:mm[:ss[.xx]]]
  2467.  
  2468. hh  specifies the hours using 24 hour time format (0 to 23).
  2469. mm  specifies minutes.  (0 to 59)
  2470. ss  specifies seconds.  (0 to 59)
  2471. xx  specifies hundredths of a second. (0 to 99) This is optional
  2472.  
  2473. TIME entered with no parameters will display the current time and give
  2474. you the option to either change the time or leave it as it is.
  2475.  
  2476. EXAMPLE: TIME 15:20
  2477. sets the time to 3:15
  2478.  
  2479. # TREE #DIR
  2480. TREE - Displays all directories and subdirectories on a disk
  2481.  
  2482. It can also list all files in each directory and subdirectory, in a
  2483. tree structured diagram.
  2484.  
  2485. COMMAND TYPE: External                  VERSION: 2.0 and up
  2486.  
  2487. USE: TREE [d:][path] [/F] [/A]
  2488.  
  2489. d:  is the drive whose directory paths will be listed.
  2490. /F  causes TREE to list the individual files in each directory as
  2491.     well as the paths
  2492.  
  2493. (DOS 4.x and later)
  2494. path sets a starting path for the TREE command, rather than using the root
  2495.      directory
  2496. /A   tells TREE to use ascii characters instead of the IBM extended
  2497.      graphics characters.  This is useful for printing on a printer which
  2498.      cannot handle the IBM graphics set.  The older versions of tree
  2499.      always used ascii characters only.
  2500.  
  2501. SEE ALSO: DIR
  2502.  
  2503. # TYPE #MORE
  2504. TYPE  - Lists the contents of a file to the screen
  2505.  
  2506. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2507.  
  2508. USE: TYPE [d:][path]filename
  2509.  
  2510. d: path filename specifies the drive, path, and filename of the file
  2511.    to be TYPEd.
  2512.  
  2513. If the file that you TYPE is not readable, it probably is not a text
  2514. or ascii file.  To view a long file, use MORE to pause at the end of each
  2515. screenful
  2516.  
  2517. SEE ALSO: MORE
  2518.  
  2519. # VDISK, RAMDRIVE, VDISK.SYS, RAMDRIVE.SYS #DEVICE #CONFIG.SYS
  2520. VDISK, RAMDRIVE - sets up a virtual (RAM) disk.
  2521.  
  2522. Virtual disks actually make your computers memory act like a disk
  2523. drive.  As a result, a virtual disk will be much faster than an actual
  2524. disk drive.  MSDOS supplies a device driver to create this virtual
  2525. disc.  Versions up to 3.3 were called VDISK.SYS.  Version 4 calls it
  2526. RAMDRIVE.SYS
  2527.  
  2528. COMMAND TYPE: External                  VERSION: 3.0 and up
  2529.  
  2530. (DOS 3.0-3.3)
  2531. USE:  DEVICE=VDISK.SYS[comment][bbb] [comment][sss][comment][ddd] [/E[:m]]
  2532.  
  2533. comment is a message containing normal text characters.
  2534. bbb  is the size of the virtual disk in kbytes.  Values between 1K and
  2535.      the memory available in your machine will be accepted.
  2536. sss  is the sector size in bytes. 128, 256, and 512 are the sizes that
  2537.      will be accepted.  A smaller sector size will utilize space much
  2538.      better, but a larger sector will improve performance.
  2539. ddd  is the number of files that the virtual disk can hold.  Values
  2540.      between 2 and 512 are accepted.
  2541. /E   will force VDISK to use the extended memory (memory above 1
  2542.      megabyte).
  2543. :m   is the maximum number of sectors of data that VDISK will transfer
  2544.      at a time.  The possible numbers for :m are 1 through 8.
  2545.  
  2546. EXAMPLE: DEVICE=VDISK.SYS 200 256 64
  2547. sets up a virtual disk with 200K storage space, 256 bytes per sector,
  2548. and 64 directory entries.
  2549.  
  2550. (DOS 4.0 and later)
  2551. USE: DEVICE=RAMDRIVE.SYS [bbb] [sss] [ddd] [/E] [/A]
  2552.  
  2553. bbb is the size of the virtual disk in kbytes.  Values between 16K and the
  2554.     memory available in your machine will be accepted.  The default is 64k
  2555. sss is the sector size in bytes. 128, 256, 512 and 1024 are accepted. The
  2556.     default is 512.  A smaller sector size will utilize space much better,
  2557.     but a larger sector will improve performance.
  2558. ddd is the number of root directory entries that the virtual disk can
  2559.     hold. Values between 4 and 1024 are accepted. The default is 64
  2560. /E  will place the virtual disc in extended memory (memory above 1
  2561.     megabyte). This  cannot be specified with /A
  2562. /A  will place the virtual disc in LIM expanded memory.  This cannot be
  2563.     specified with /E
  2564.  
  2565. NOTE: The VDISK.SYS or RAMDRIVE.SYS device drivers must be placed in the
  2566. CONFIG.SYS file and be used in conjunction with the DEVICE = DRIVER
  2567. command.
  2568. NOTE: The contents of a virtual disc will be lost when you reset or turn
  2569. off the computer
  2570.  
  2571. # VER
  2572. VER - Displays the version of DOS that you are currently using.
  2573.  
  2574. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2575.  
  2576. USE: VER
  2577.  
  2578. # VERIFY #COPY #XCOPY #DISKCOPY
  2579. VERIFY - Turns disk write verification on or off.
  2580.  
  2581. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2582.  
  2583. USE: VERIFY [ON] [OFF]
  2584.  
  2585. ON  will turn VERIFY ON
  2586. OFF will turn VERIFY OFF.
  2587.  
  2588. With no argument, VERIFY will report the current setting of VERIFY.
  2589. When VERIFY is ON, DOS will check to see if data written was written
  2590. correctly.  With VERIFY ON, all disk operations (copy, xcopy, diskcopy
  2591. etc. will be slower)
  2592.  
  2593. # VOL #LABEL #FORMAT
  2594. VOL - Displays the VOLUME LABEL of the specified diskette.
  2595.  
  2596. COMMAND TYPE: Internal                  VERSION: 2.0 and up
  2597.  
  2598. USE: VOL [d:]
  2599.  
  2600. d: is the drive whose VOLume label will be displayed.  The default
  2601. drive is assumed if none is specified.
  2602.  
  2603. SEE ALSO: LABEL
  2604.  
  2605. # XCOPY #COPY #VERIFY #DISKCOPY
  2606. XCOPY - Copies groups of files.  Subdirectories can be included.
  2607.  
  2608. XCOPY copies groups of files based on various switches.  It can copy
  2609. entire subdirectory trees and is much more powerful than COPY.
  2610.  
  2611. COMMAND TYPE: External                  VERSION: 3.2 and up
  2612.  
  2613. USE:  XCOPY [d:][path]filename1 [d:][path][filename2] [/A][/D][/E]
  2614.             [/M][/P][/S][/V][/W]
  2615. or    XCOPY [d:] path [filename1] [d:][path][filename2] [/A][/D][/E]
  2616.             [/M][/P][/S][/V][/W]
  2617. or    XCOPY d:[path] [filename1] [d:][path][filename2] [/A][/D][/E]
  2618.             [/M][/P][/S][/V][/W]
  2619.  
  2620. d: path filename1 specifies the source drive, path, and filename.
  2621. d: path filename2 specifies the destination drive, path, and filename.
  2622. /A   copies only those files that have been modified since the last
  2623.      BACKUP /M or XCOPY /M.
  2624. /D   copies files whose date is equal to or later than the date
  2625.      specified.  If you wish to specify a date, the format is
  2626.      /D:mm-dd-yy or whatever date format you may have selected using
  2627.      the COUNTRY or SELECT commands.
  2628. /E   causes XCOPY to create subdirectories on the destination drive
  2629.      as it copies.
  2630. /M   copies only those files that have been modified since the last
  2631.      BACKUP /M or XCOPY /M.  The /M option is identical to the /A
  2632.      option except XCOPY /M will reset the flags on those files that
  2633.      have been modified since the last backup.
  2634. /P   causes XCOPY to prompt you before copying each file.
  2635. /S   causes XCOPY to copy files in any subdirectories below the
  2636.      directory that XCOPY starts in.
  2637. /V   causes XCOPY to VERIFY that the data recorded was recorded
  2638.      correctly.
  2639. /W   causes XCOPY to wait for you to insert a disk before beginning.
  2640.  
  2641. EXAMPLE: XCOPY C:\ D:\ /S
  2642. will copy all files in all directories from drive C: to drive D:.
  2643.  
  2644. SEE ALSO: COPY
  2645.